RE: [PHP] Suggestions for the next php

From: Date: Fri, 21 Dec 2001 17:13:33 +0000
Subject: RE: [PHP] Suggestions for the next php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-78492@lists.php.net to get a copy of this message
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: rouvas@mm.di.uoa.gr [mailto:rouvas@mm.di.uoa.gr] On Behalf Of Rouvas Stathis Sent: Friday, 21 December 2001 1:21 To: mlemos@acm.org Cc: php-general@lists.php.net 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: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#78492) next »