Message197210
When a process started as a multiprocessing Process spawns a thread, it doesn't wait until the thread terminates. It terminates the thread early when the main thread of the process terminates, as if the thread would be daemonic (it isn't).
It may sound a bit weird to start a Thread within multiprocessing, but it isn't prohibited. Neither is this behavior documented.
In the attached program the thread doesn't complete. However when the mythread.join() statement is uncommented it does run to completion. |
|
Date |
User |
Action |
Args |
2013-09-08 01:20:27 | pietvo | set | recipients:
+ pietvo |
2013-09-08 01:20:27 | pietvo | set | messageid: <1378603227.91.0.146993702012.issue18966@psf.upfronthosting.co.za> |
2013-09-08 01:20:27 | pietvo | link | issue18966 messages |
2013-09-08 01:20:27 | pietvo | create | |
|