摘要:
twisted里是通过回调机制来实现类似于多线程,意思是防止程序的运行由于等待某项任务的完成而陷入阻塞停滞,提高整体运行的效率。from twisted.internet import reactor1. reactor.callFromThreadMethod callFromThread:Cause a function to be executed by the reactor thread. Use this method when you want to run a function in the reactor's thread from another thread. 阅读全文
posted @ 2011-02-12 10:24
twelfthing
阅读(1680)
评论(0)
推荐(0)
浙公网安备 33010602011771号