python multiprocessing yield quantum

121 Views Asked by At

I would like to make use of parallelization in my program by using the python multiprocessing library. For that purpose I want to check whether an action is right doable right now and if not yield the quantum of the current process and allow the next process to make use of the cpu time until the scheduler decides to give it another try.

By searching I have found that time.sleep(0) seems to be doing it for threads. Does it also work for processes?

0

There are 0 best solutions below