Quickie about mod_python

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Aug 30 22:22:44 CEST 2002

The answer depepnds on the platform. If you're running Apache 1.3 on UNIX,
then, because it runs multiple processes in parallel, you're ok.

On Windows, however, where Apache 1.3 runs multithreaded in a single
process, you would run into this limitation.

Though I will bet you anything that multi-processor CGI is still going to
be much slower than single-processor mod_python.


On 28 Aug 2002, Garry Taylor wrote:

> Hello,
> I understand with mod_python, speed increases can be had as for every
> hit on Apache, it does not fire up a new Python interpreter, it uses
> the same one (or a sub-interpreter?). My problem is, if I run on a
> multiple CPU machine, will those CPUs be used? With normal Python CGI,
> they clearly would as the python interpreters are seperate processes,
> but with Python having the GIL, and I understand it cannot
> multi-thread over multiple CPUs, would this be a problem?
> If mod_python cannot use multiple CPUs this is surely a major
> hinderence to it being used on high-end hardware.
> Anyone know the answer to this?
> Thanks in advance
> Garry

More information about the Python-list mailing list