Maximum Size For Multiprocessing.queue Item?
Solution 1:
Seems the underlying pipe is full, so the feeder thread blocks on the write to the pipe (actually when trying to acquire the lock protecting the pipe from concurrent access).
Check this issue http://bugs.python.org/issue8237
Solution 2:
The answer to python multiprocessing: some functions do not return when they are complete (queue material too big) implements what you probably mean by "dequeuing" before joining" in a parallel execution of an arbitrary set of functions, whose return values get queued.
This therefore allows any size of stuff to get put into the queues, so that the limit you found does not get in the way.
Solution 3:
By default maxsize of Queue is infinite, but you have over-ridden that. In your case, worker_p is putting item in the queue, the queue should be freed up before calling join. Please refer below link for details. https://docs.python.org/2/library/multiprocessing.html#programming-guidelines
Post a Comment for "Maximum Size For Multiprocessing.queue Item?"