in reply to YAJAPH
Each process does
sleep rand(2) [download]
But the output comes out in the right order even though 32 concurrent processes are each printing a single character.
How is that accomplished?