By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Thread termination

P: n/a
Hi all,

Does any one know how to terminate or kill a thread that is started
with "start_new_thread()" in the middle of its execution?

Any pointers?

Thanks in advance

Teja.

Oct 13 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Teja schrieb:
Hi all,

Does any one know how to terminate or kill a thread that is started
with "start_new_thread()" in the middle of its execution?

Any pointers?
This has been discussed a bazillion times in this NG. The short answer
is: no.

For the long answer: do some googling :)

Diez
Oct 13 '06 #2

P: n/a
"Teja" <te*********@gmail.com>wrote:
Hi all,

Does any one know how to terminate or kill a thread that is started
with "start_new_thread()" in the middle of its execution?

Any pointers?

Thanks in advance

Teja.
can't be done from outside without co operation of thread in question.
google this newsgroup
- Hendrik

Oct 14 '06 #3

P: n/a
Hendrik van Rooyen <ma**@microcorp.co.zawrote:
can't be done from outside without co operation of thread in question.
google this newsgroup
Hopefully google will discover also the thread where the above statement is
proved to be false ;-)

This might be a useful thing to search for...

ctypes.pythonapi.PyThreadState_SetAsyncExc

--
Nick Craig-Wood <ni**@craig-wood.com-- http://www.craig-wood.com/nick
Oct 14 '06 #4

P: n/a
"Nick Craig-Wood" <ni**@craig-wood.comwrote:

Hendrik van Rooyen <ma**@microcorp.co.zawrote:
can't be done from outside without co operation of thread in question.
google this newsgroup

Hopefully google will discover also the thread where the above statement is
proved to be false ;-)

This might be a useful thing to search for...

ctypes.pythonapi.PyThreadState_SetAsyncExc
Where were you when we needed you some week or two ago?

I *could* argue that using ctypes is cheating.... - But I wont...

- Hendrik

Oct 14 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.