Antoine Pitrou <pit...@free.fr> added the comment:

What happens if you add another process that calls get() on the queue?  You 
should not try to put data on a queue if you don't ever plan to consume it, as 
the queue's background thread will eventually block until something gets 
consumed.

For example, this blocks here on Linux:

$ ./python -c "import multiprocessing as mp; q = mp.Queue(); [q.put(None) for i 
in range(50000)]"

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32937>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to