Is this true regarding Python's limitation?

Martijn Faassen m.faassen at vet.uu.nl
Mon Sep 25 10:20:49 EDT 2000


Cary O'Brien <cobrien at radix.net> wrote:
> In article <8qdjhu$jhm$1 at newshost.accu.uu.nl>,
> Martijn Faassen <m.faassen at vet.uu.nl> wrote:
>>Cameron Laird <claird at starbase.neosoft.com> wrote:
>>> In article <8qdfcn$71b$1 at nnrp1.deja.com>, vbMark  <vbmark at my-deja.com> wrote:
>>>>Someone told me that the reason Java is better than Python for server-
>>>>side CGI is because where Java uses one process and creates threads for
>>>>each user's access, Python creates sperate processes for each user's
>>>>CGI access.  So using Python would greatly limit and perhaps crash a
>>>>server.
>>>>
>>>>Is this true?
>>> 			.
>>> Urban legend.  There are a few isolated words in your description
>>> that correspond in a barely recognizable way to truth.  Do NOT
>>> shun Python for CGI because it "would ... perhaps crash a server"
>>> (and certainly not in comparison with Java).
>>
>>In particular, Zope (built with Python) does do exactly what Python isn't
>>supposed to do according to this person; create separate threads for each
>>user's request.

> Hmm... Doesn't it really keep a pool of threads around?
>  (I wish ps and strace understood
> threads better!).

Ah, yes, you are right. I didn't describe it very well. It creates a number
of threads, and whenever a request come in a particular thread gets to
handle that request. Anyway, I still don't imagine it's much different
from Java, right?

Regards,

Martijn




More information about the Python-list mailing list