Good thread pool module
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Thu Mar 23 05:58:04 EST 2006
Dennis Lee Bieber:
>Raymond Hettinger:
>> Because of the GIL, thread pools are not as useful in Python as you
>> might expect -- they execute one at a time and do not take advantage of
>> hyper-threading or multiple processors. If that kind of efficiency is
>
> If the task is I/O bound (something like a web spider?), seems
>they'd still be useful...
Yes, I use a thread pool for that. But async I/O may be a more efficient
solution (e.g. Twisted).
--
René Pijlman
Wat wil jij leren? http://www.leren.nl
More information about the Python-list
mailing list