Python queue
From wikinotes
NOTE:
I've ran into strange bugs when not using multiprocesing.queue
Usage
Queues support both primitive objects and your own custom objects. I have found the command pattern to be particularly useful when using queues.
import multiprocessing queue = multiprocessing.Queue() queue.put('a') queue.get() # blocks until an item is available. #> 'a'