On 8/15/07, <b class="gmail_sendername">Yan Zhu</b> <<a href="mailto:nayuhz@gmail.com">nayuhz@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi all, <br>I read a text about twisted vs thread, who can tell mewhy Twsited is efficiently in one thread? <br>especially, if clients require long-running processing above and beyond socket calls, or in the multi-processor system?
<br>look at this: <a href="http://kaishaku.org/twisted-vs-threads/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://kaishaku.org/twisted-vs-<span id="st" name="st" class="st">threads</span>/
</a></blockquote><div><br><br>I recommend twisted.internet.threads.deferToThread.<br><br>Hope this helps,<br></div></div><br>-- <br>Christopher Armstrong<br>International Man of Twistery<br><a href="http://radix.twistedmatrix.com/">
http://radix.twistedmatrix.com/</a><br><a href="http://twistedmatrix.com/">http://twistedmatrix.com/</a><br><a href="http://canonical.com/">http://canonical.com/</a><br>