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@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python