def main():
# create an ioloop, do the above, then stop
import time
import _thread
start = time.time()
def _thread():
ioloop.IOLoop.current().run_sync(communicate)
for _ in range(5):
_thread.start_new_thread(_thread, ())
while 1:
pass
end = time.time()
print((end-start))
评论列表
文章目录