Multiprocessing: Randomize writes so that a single process does not get all tasks while there's more space in the pipe buffer