Author pietvo
Recipients pietvo
Date 2013-09-08.01:20:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378603227.91.0.146993702012.issue18966@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-09-08 01:20:27pietvosetrecipients: + pietvo
2013-09-08 01:20:27pietvosetmessageid: <1378603227.91.0.146993702012.issue18966@psf.upfronthosting.co.za>
2013-09-08 01:20:27pietvolinkissue18966 messages
2013-09-08 01:20:27pietvocreate