[issue29658] Combining thread and process, process hangs (sometimes)

2017-02-27 Thread djstrong
djstrong added the comment: Thank you! I couldn't find information about first forking then launching threads. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue29658] Combining thread and process, process hangs (sometimes)

2017-02-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unless I'm misreading what you're trying to do, this doesn't seem like a bug to me. In general, when combining threading with multiple processes, the rule is to fork first and then launch threads (so that none of the thread ids or locks accidentally get

[issue29658] Combining thread and process, process hangs (sometimes)

2017-02-26 Thread djstrong
djstrong added the comment: It is confirmed with other hardware with Python 3.5.2. Process is forked, but method "run" is not executing. -- versions: +Python 3.5 -Python 3.4 ___ Python tracker

[issue29658] Combining thread and process, process hangs (sometimes)

2017-02-26 Thread djstrong
djstrong added the comment: Sometimes the output is: Thread-1 RUN Thread-1 STOP B started True 20187 A [INFO/B-1] child process calling self.run() but "print" in "run" method of process is not executed. --

[issue29658] Combining thread and process, process hangs (sometimes)

2017-02-26 Thread djstrong
Changes by djstrong : -- title: Process hangs (sometimes) -> Combining thread and process, process hangs (sometimes) ___ Python tracker