[Twisted-Python] why is Twsited efficiently in one thread? what about in multi-processor system?
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,
International Man of Twistery
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python