[Twisted-Python] Has anybody integrated multiple threadpools into reactor?
Glyph Lefkowitz
glyph at divmod.com
Wed Oct 20 18:18:56 EDT 2004
On Tue, 2004-10-19 at 11:17, Itamar Shtull-Trauring wrote:
> Just use twisted.python.threadpool.ThreadPool instances. You can
> reactor.suggestThreadPoolSize or something wiht size 1, or start your
> own threadpool with size 1.
I would strongly recommend against using ThreadPool. Just use
callInThread - there is already a pool of worker threads. Starting and
stopping threadpools with the reactor is difficult to test and easy to
get wrong.
More information about the Twisted-Python
mailing list