摘要:
常见的使用方法如下:#!/usr/bin/env pythonimport threadpoolimport time,random def hello(str): time.sleep(2) return str def print_result(request, result): print "the result is %s %r" % (request.requestID, result) data = [random.randint(1,10) for i in range(20)] pool = threadpool.ThreadPool(5)requests 阅读全文
posted @ 2013-03-21 11:32
聂风
阅读(2134)
评论(1)
推荐(0)

浙公网安备 33010602011771号