Stopping threads

  • Thread starter Thread starter Daniel Reber
  • Start date Start date
D

Daniel Reber

When all code is completed from a thread, do I need to explicitly stop the
thread or will it stop on it's own?

Thanks,

Dan Reber
 
Hi Daniel,
The thread will *exit* when the the code it executes exit via *return*,
reaching the end, throwing exception, etc. If you mean *stop* like *exit* -
yes it will *exit* by its own when there is no more code to execute.

HTH
B\rgds
100
 
Back
Top