develooper Front page | perl.ithreads | Postings from March 2013

Re: Issues with process forking when 'multithreaded'.

Thread Previous | Thread Next
From:
Sander Smeenk
Date:
March 4, 2013 18:13
Subject:
Re: Issues with process forking when 'multithreaded'.
Message ID:
20130304181331.GD9656@dot.freshdot.net
Quoting Mike Pomraning (mjp@pilcrow.madison.wi.us):

> > And i still don't understand why mixing threads+fork is "not smart". ;)
> Mixing the two makes it easy to introduce damning error.
> 
> Here's someone who learned it the hard way:
> http://rachelbythebay.com/w/2011/06/07/forked/
> 
> Here are some caveats on forking and program state:
> http://pubs.opengroup.org/onlinepubs/009696799/functions/pthread_atfork.html#tag_03_486_08
> 
> Here's an acknowledgement that the standards folks didn't get all the pesky
> semantics quite right:
> https://collaboration.opengroup.org/external/pasc.org/interpretations/unofficial/db/p1003.1c/pasc-1003.1c-37.html

Thanks. This was insightful. It's hard to find these links using Google.
All you find is people experiencing deadlocks and other problems. ;)

-Sndr.
-- 
| Today is the first day of the rest of your life
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About