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

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -