Re: Task dispatching
Re: Task dispatching
On 13 Sep 2011, at 21:34, Scott Ribe wrote:
> On Sep 13, 2011, at 1:50 PM, Stephen J. Butler wrote:
>
>> Programs like postgres run just fine in OS X and they rely heavily on forking.
>
> Of course, but they don't just fork then continue execution of the same image, which is what was being suggested. They fork and then exec a new image.
>
>
Are you sure about this?
Looking at the apache mpm pre fork code it looks to me that the child executes the same image.
http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/prefork/prefork.c?view=markup
see make_child (which does the fork) and child_main (which is called in the child after the fork).
Regards
Jonathan Mitchell
Mugginsoft LLP
================================================
KosmicTask - the Integrated Scripting Environment for OS X.
http://www.mugginsoft.com/KosmicTask
================================================_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden