[Twisted-Python] why is Twsited efficiently in one thread? what about in multi-processor system?

Christopher Armstrong radix at twistedmatrix.com
Wed Aug 15 21:31:08 MDT 2007


On 8/15/07, Yan Zhu <nayuhz at gmail.com> wrote:
>
> hi all,
> I read a text about twisted vs thread, who can tell mewhy Twsited is
> efficiently in one thread?
> especially, if clients require long-running processing above and beyond
> socket calls, or in the multi-processor system?
> look at this: http://kaishaku.org/twisted-vs-threads/



I recommend twisted.internet.threads.deferToThread.

Hope this helps,

-- 
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20070815/018bdb29/attachment.html>


More information about the Twisted-Python mailing list