[issue8037] multiprocessing.Queue's put() not atomic thread wise

Vilnis Termanis report at bugs.python.org
Tue Mar 2 01:50:21 CET 2010


Vilnis Termanis <vilnis.termanis at googlemail.com> added the comment:

Quick though (last one I promise):

Maybe put() could have an argument to indicate whether to be thread-blocking (i.e. guaranteeing the object to be sent in its current state) or not. The (current) non-thread-blocking mode will have better performance for the put()-calling process if there are a lot of processes trying to write to the queue at once since it can continue regardless (while the _feed thread waits for the internal Pipe to become available).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8037>
_______________________________________


More information about the Python-bugs-list mailing list