Separate memory is what makes processes safe and what makes them awkward. To work together they must send data across the boundary, or share a region of memory on purpose. The multiprocessing module offers both, in a ladder from the simplest and safest to the fastest and most delicate: queues and pipes that copy messages, shared values that live in one place, managers that serve objects, and raw shared memory. This lesson climbs the ladder.
More lessons in Complete Python Programming