Good thread pool module
reply.in.the.newsgroup at my.address.is.invalid
Thu Mar 23 11:58:04 CET 2006
Dennis Lee Bieber:
>> 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).
Wat wil jij leren? http://www.leren.nl
More information about the Python-list