27 October 2013

python virtual thread

gevent

greenlet -> virtual thread instance



gevent.pool.Pool(3)                       # limit concurrent thread to 3,
                                                 #habis satu baru run satu lagi
pool.spawn(function_name)

No comments:

Post a Comment

Terima kasih