Killing a thread

  • Thread starter Thread starter Hasani
  • Start date Start date
H

Hasani

When I'm done using a thread, do I do Abort or do nothing and the run time
will kill it for me?
also, can I call Join a thread after I call Abort on that same thread?
 
A thread ends itself when the function it started in returns. You probably
shouldn't kill it from another thread; you could set an exit flag that the
thread checks periodically.

Chris
 

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

Similar Threads


Back
Top