> Just for the record, there is no fork() on Win32.
> 
> I have little doubt Sterling meant the Win32 equivalent :).
> 
> The only reason I felt this worth mentioning is that fork() on Unix is a
> relatively cheap operation, and an advantage unique to Unix.  Some have
> posted here of service providers that host huge numbers of low volume
> websites using PHP in CGI mode.
> 
> On Win32 you only have one choice - start a new php.exe instance on every
> request.  This is an expensive operation - possibly even more expensive than
> the equivalent operation on Unix.
> 
> On Unix you have another *potential* choice - load the php executable once
> and fork() on each request.  The presence of fork() on Unix offers (at least
> in theory) a unique performance advantage over Win32.
>

win32 supports fork in the way I was using it :), CGI semantics make your method
of implementation impossible.   CreateProcess() is the system call that is used.

If you really wanted something similair you could call CreateThread() which would
have the same effect.

-Sterling

> 
> -----Original Message-----
> From: Sterling Hughes [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 11, 2002 7:50 AM
> 
> Just as a note to this, under windows using PHP as a CGI is actually ideal
> when you're not serving high traffic stuff, like for example the company
> intranet, or a small extranet.  PHP is heavily used for such purposes, and
> you most likely won't run into a bottleneck from forking php in these cases.
> 

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to