httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Stoddard <>
Subject Re: cgi performance in Apache-apr.
Date Mon, 19 Apr 1999 13:30:46 GMT
Greg Stein wrote:
> Ryan Bloom wrote:
> >
> How is this different from the CGISOCK module thingy that has been
> posted here a couple times? It sounds like they are doing the same
> thing, could share code, and/or may be duplicate efforts. It might be a
> good idea to examine CGISOCK as it has "been around" for a while.

fork()'ing a process with threads is expensive. Ryan's module is
designed specifically to reduce the performance hit when forking the CGI
from hybrid Apache by introducing a surrogate parent (not threaded) to
do the fork on behalf of the child process. The surrogate parent is
created by the Apache parent process. This is a pretty common technique
to use when you need to fork a threaded process and it is not necessary
that the forked process itself have threads (and this technique is
documented in the O'Reilly Pthreads book, BTW). 
Bill Stoddard

View raw message