On Tue, Sep 13, 2011 at 7:08 PM, Andrew Wiley <[email protected]> wrote: > On Tue, Sep 13, 2011 at 8:54 PM, zsxxsz <[email protected]> wrote: >> == Quote from Adam Ruppe ([email protected])'s article >>> zsxxsz wrote: >>> > The fork process is expensive for any OS. >>> Have you actually measured this? >> Yes, I'm sure. Fork on UNIX or CreateProcess on Win32 are expensive. > > Interestingly enough, this benchmark conducted ~10 years ago on a > Pentium 3 found that Fork took less than a millisecond on Linux 2.6: > http://bulk.fefe.de/scalability/ >
Fork creates a child process with an copy of the parent process. Yes, this is very fast on any decent operating system. For cgi to work I am pretty sure you have to call execve which transform a process into another process. That link doesn't measure performance for execve...
