Get multiprocessing.Queue to do priorities

Jesse Noller jnoller at
Sun May 10 09:35:03 EDT 2009

On Sat, May 9, 2009 at 6:11 PM, uuid <M8R-gqmgb4 at> wrote:
> The Queue module, apparently, is thread safe, but *not* process safe. If you
> try to use an ordinary Queue, it appears inaccessible to the worker process.
> (Which, after all, is quite logical, since methods for moving items between
> the threads of the same process are quite different from inter-process
> communication.) It appears that creating a manager that holds a shared queue
> might be an option
> (

Using a manager, or submitting a patch which adds priority queue to
the multiprocessing.queue module is the correct solution for this.

You can file an enhancement in the tracker, and assign/add me to it,
but without a patch it may take me a bit (wicked busy right now).


More information about the Python-list mailing list