[Twisted-Python] CPU intensive threads

William Waites ww at groovy.net
Tue Jul 26 19:51:46 EDT 2005

you can yield or do a blocking operation like calling a syscall
every so often in the cpu intensive thread

On Tue, Jul 26, 2005 at 05:44:59PM -0600, Nathaniel Haggard wrote:
> Is there anything twisted can do about CPU intensive threads?
> When I run a CPU intensive method via threads.deferToThread it takes
> all the CPU away and renders the twisted process unresponsive.  The
> perspective broker for example will not make any connections until the
> CPU intensive methods finish.
> Is there a way to set the priority of the main part of twisted so that
> it can run CPU intensive threads and still service connections.
> Thanks,  
> Nate
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list