Re: fork and pthreads
Re: fork and pthreads
- Subject: Re: fork and pthreads
- From: Ariel Burton <email@hidden>
- Date: Sun, 17 Nov 2013 21:55:37 -0500
On Sun 17 Nov 19:28, Stephen J. Butler wrote:
> That method makes 100% sense to me. Where did you hear lock/unlock is the
> way to share pthread structures?
The objective of the standard idiom is not to share the
pthread entities between processes, but to prevent the
child from deadlocking. See, e.g., the dicsussion in
Butenhof's book, or here:
http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/2291____.HTM
Note also that the scheme outlined in the link you provided
is just as susceptible to the deadlock problem if the forking
process is multi-threaded.
Ariel Burton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden