Apparently, I don't understand threading

jwsacksteder at ramprecision.com jwsacksteder at ramprecision.com
Sun Mar 13 21:06:39 EST 2005


I realize that. I'm using a variant of the polite shutdown request technique
used in the python cookbook. The problem is that thread creation is
apparently blocking instead of continuing program execution.

-----Original Message-----
From: jepler at unpythonic.net [mailto:jepler at unpythonic.net] 
Sent: Sunday, March 13, 2005 9:03 PM
To: Jeff Sacksteder
Cc: python-list at python.org
Subject: Re: Apparently, I don't understand threading

The Python threading model doesn't allow one thread to forcibly terminate
another.  This has been discussed many times before, I think that the short
answer is a combination of (a) it's hard to specify what happens in the
terminated thread, without the possibility of leaving the program in an
unknown
state and (b) the threading modules are very lowest-common-denominator, not
requiring features that aren't already built into all the targeted
OS/threading
library combination.

Jeff



More information about the Python-list mailing list