I believe fork is very expensive in terms of performance. One should consider that in the case of server modules (ISAPI in particular) a huge overhead is incurred when forking. I better alternative would be the vfork call. Or better still, the __clone call.
Do you know of any ways to implement this without changes to the php codebase itself? I doubt it is possible for an just extension to do this, it need the php core to support this. Stephano Mariani -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Rouvas Stathis Sent: Friday, 21 December 2001 1:21 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Suggestions for the next php Manuel Lemos wrote: > > > > For example, multi-threading. Looking at the PHP sources, I can > > > see this would be fairly easy to implement on some most server > > > modules. Before I get fried by people for suggesting this, I know > > > there are many functions that are not thread safe, such the ob_* > > > functions. But as far as I can see threading would be well suited > > > to some PHP tasks... > > You can use the pcntl extension if you are using any (fork capable) > Unix. Can you elaborate on the "pcntl extension", please? What is it? How do you use it? Thank you, -Stathis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]