Re: Issues with process forking when 'multithreaded'.
[email protected] (Mike Pomraning) Mon, 4 Mar 2013 10:45:46 -0600
| Newsgroups | perl.ithreads |
|---|---|
| Message-ID | <CAPZFfA8YXVxMGjfUb_QdC5hciCcR2bAaR0n+5-3gBFane4ZTpw@mail.gmail.com> |
--047d7b86cea4e59ce904d71c1739 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Mar 4, 2013 at 10:31 AM, Sander Smeenk <[email protected]> wrote: > > 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 -Mike --047d7b86cea4e59ce904d71c1739--