[FIXED] "select" on multiple Python multiprocessing Queues?

Issue

What's the best way to wait (without spinning) until something is available in either one of two (multiprocessing) href="http://docs.python.org/library/multiprocessing.html#multiprocessing.Queue" rel="noreferrer">Queues, where both reside on the same system?


Solution

It doesn't look like there's an official way to handle this yet. Or at least, not based on this:

You could try something like what this post is doing -- accessing the underlying pipe filehandles:

and then use select.



Answered By - ars
Answer Checked By - Katrina (Python.Easybugfix Volunteer)

Related Posts

Post a Comment