[Tutor] Killing a thread ..
Tobin, Mark
Mark.Tobin@attcanada.com
Wed, 11 Jul 2001 07:34:40 -0600
I think Allan Crooks posted a great answer to this in reply to my question
of a really similar nature (at least from my point of view they look
similar) on Wednesday June 20 around 6:21pm (Eastern I think) under the
subject RE: [TUTOR] Killing threads... I don't know how to post a link but
I'm sure you can find it in the archives...
Mark
p.s.. it also has a few corrections of my code so bear with my problems
while reading his answers... ;-)
-----Original Message-----
From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
Praveen Pathiyil
Sent: Wednesday, July 11, 2001 5:53 AM
To: tutor@python.org
Subject: [Tutor] Killing a thread ..
Hi All,
I wanted some help on killing a thread. The scenario is something like this
--
I have a main function which is executed in the main thread. (This is
actually a GUI). The actual back-end, is started in a thread spawned from
the main thread. Now i want to kill the spawned thread from the main thread.
How can i acheive that ?
(The back-end is a protocol simulator. When the user presses "stop" of the
GUI, i wanted to kill the thread which is used for running the simulator).
Thanks in advance,
Praveen.