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

Christopher Armstrong radix at twistedmatrix.com
Wed Aug 15 23:31:08 EDT 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: http://twistedmatrix.com/pipermail/twisted-python/attachments/20070815/018bdb29/attachment.htm 


More information about the Twisted-Python mailing list