April 28, 2009, 9:59 am
As with threads, a common use pattern for multiple processes is to divide a job up among several workers to run in parallel. A simple way to do that with multiprocessing is to use Queues to pass messages back and forth. Any pickle-able object can pass through a multiprocessing Queue. This is part 2 of coverage of the multiprocessing module. If you missed part one, you may want to start there.