mod_python and threads

Martin von Loewis loewis at informatik.hu-berlin.de
Fri Dec 28 18:37:56 EST 2001


"Achim Domma" <achim.domma at syynx.de> writes:

> I'm playing around with mod_python and I like it, but I don't understand how
> it handles multiple threads. I think apache holds a pool of threads to
> handle request, so what happens if mod_python uses only one subinterpreter
> per virtual server ? 

That depends on the Apache version, the operating system, and the
configuration. To my knowledge, on Unix, Apache 1.3 will not use
threads.

> Are request handled in a serial way or do I have to write threadsafe
> code ?

Depends too much on the system you are using to answer this question.

Regards,
Martin



More information about the Python-list mailing list