Thread termination

T

Teja

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.
 
D

Diez B. Roggisch

Teja said:
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
 
H

Hendrik van Rooyen

Teja said:
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
 
N

Nick Craig-Wood

Hendrik van Rooyen said:
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
 
H

Hendrik van Rooyen

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top