multiprocessing.Process call blocks other processes from running

Joseph L. Casale jcasale at activenetwerx.com
Sat Jan 14 14:05:48 EST 2017


>  while True:
>    for client in clients:
>      stats = ThreadStats()
>      stats.start()
>      p = Process(target=getWhispererLogsDirSize, args=(client,queue,))
>      jobs.append(p)
>      p.start()
>      p.join()

You start one client then join before starting the next...

Start them all and push the pointer the resulting process object into a collection.
Then use whatever semantics you desire to wait them all...

jlc



More information about the Python-list mailing list