windows - Multiprocessing apply_async always not ready -
i writing simple multiprocessing function try have flavor of it. however, after using apply_asyc , not ready. don't know why happens.
from multiprocessing import pool, timeouterror import numpy np import time
def f(i): return * print f(2) if __name__ == '__main__': pool = pool() res = pool.apply_async(f,(20)) print res.ready()
Comments
Post a Comment