REPOST: Re: 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

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-nwblwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Martin von Loewis <loewis at informatik.hu-berlin.de>
Newsgroups: comp.lang.python
Subject: cmsg cancel <j4lmfmc3vv.fsf at informatik.hu-berlin.de>
Control: cancel <j4lmfmc3vv.fsf at informatik.hu-berlin.de>
Date: Mon, 31 Dec 2001 04:01:18 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.j4lmfmc3vv.fsf at informatik.hu-berlin.de>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774980 27193 211.57.49.2 (31 Dec 2001 05:03:00 GMT)
X-Complaints-To: usenet at news2.kornet.net
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