[issue35479] multiprocessing.Pool.join() always takes at least 100 ms
STINNER Victor
report at bugs.python.org
Fri Dec 14 06:06:45 EST 2018
STINNER Victor <vstinner at redhat.com> added the comment:
My PR 11136 doesn't work: _maintain_pool() should be called frequently to check when a worker completed. Polling worker exit status seems inefficient :-(
asyncio uses SIGCHLD signal to be notified when a child process completes. SafeChildWatcher calls os.waitpid(pid, os.WNOHANG) on each child process, whereas FastChildWatcher() uses os.waitpid(-1, os.WNOHANG).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35479>
_______________________________________
More information about the Python-bugs-list
mailing list