[mod_python] Multiple interpreter instances?

Volodya volodya at real.samuraj.org
Fri Jul 16 01:05:24 EDT 2004

On Thu, Jul 15, 2004 at 01:19:27PM -0500, Johnathan Gurley wrote:
> Correct me if I'm wrong, but fork copies the parent process's memory
> into the child process's memory, but the child has its own unique
> stack and heap.  This would make it very difficult to share Python
> memory between Apache instances, as the Apache instances themselves
> have separate memory space.

Apache 2 introduced threaded model. Threads share process's memory.
With Mod_python 3.x and Apache 2.x you can share  global variables per
Apache's virtual server for example. And it seems threads work fine on
Linux, Windows and FreeBSD 5.x (but not FreeBSD 4.x).

More information about the Mod_python mailing list