REPOST: Re: mod_python and threads

Martin von Loewis loewis at
Fri Dec 28 18:37:56 EST 2001

"Achim Domma" <achim.domma at> 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

> 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.


========= WAS CANCELLED BY =======:
From: Martin von Loewis <loewis at>
Newsgroups: comp.lang.python
Subject: cmsg cancel <j4lmfmc3vv.fsf at>
Control: cancel <j4lmfmc3vv.fsf at>
Date: Mon, 31 Dec 2001 04:01:18 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.j4lmfmc3vv.fsf at>
X-Trace: 1009774980 27193 (31 Dec 2001 05:03:00 GMT)
X-Complaints-To: usenet at
NNTP-Posting-Date: Mon, 31 Dec 2001 05:03:00 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.

More information about the Python-list mailing list