[Twisted-Python] deferToThread and thread pool

Christopher Armstrong radeex at gmail.com
Wed Aug 31 01:01:08 EDT 2005

On 8/31/05, Brian Granger <bgranger at scu.edu> wrote:
> I have a few questions about the default implementation of
> deferToThread.
> 1.  Does deferToThread use a thread pool by default?  If not, how can
> I enable this?


> 2.  Which thread are the callbacks and errbacks of the deferred
> returned by deferToThread run in?

The reactor (i.e., probably the main) thread.

  Twisted   |  Christopher Armstrong: International Man of Twistery
   Radix    |    -- http://radix.twistedmatrix.com
            |  Release Manager, Twisted Project
  \\\V///   |    -- http://twistedmatrix.com
   |o O|    |  

More information about the Twisted-Python mailing list