[Twisted-Python] Has anybody integrated multiple threadpools into reactor?

Glyph Lefkowitz glyph at divmod.com
Thu Oct 21 13:35:43 EDT 2004


On Thu, 2004-10-21 at 06:31, Andrew Bennetts wrote:

> There's nothing in Twisted that requires all your threads run in a Twisted
> threadpool; they're just provided for convenience (mainly the convenience of
> deferToThread).  If all you need is a single thread, then
>     t = threading.Thread(target=foo)
> works great.  reactor.callFromThread works from any thread.

I mostly agree with your post, but when is your suggestion not
equivalent to:

	reactor.callInThread(foo)

?





More information about the Twisted-Python mailing list