[issue27422] Deadlock when mixing threading and multiprocessing

Raymond Hettinger report at bugs.python.org
Thu Jun 30 14:25:20 EDT 2016


Raymond Hettinger added the comment:

It is in-fact problem prone (and not just in Python).  The rule is "thread after you fork, not before".  Otherwise, the locks used by the thread executor will get duplicated across processes.  If one of those processes dies while it has the lock, all of the other processes using that lock will deadlock.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list