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
 
Back
Top