When submitting a list of tasks that is longer than the number of processes, how are the processes assigned to these tasks?
from multiprocessing import Pool
def f(i):
print(i)
return i
with Pool(2) as pool:
print(pool.map(f, [1, 2, 3, 4, 5]))
I'm running a more complex function and the execution doesn't seem to be in order (FIFO).