A
Andrew Mallinson
Hey
Ive currently got several threads running in my program that collect data on
how the rest of the program is performing. I just want to make sure that
once these results collection threads have finished ie. got to the end of
their run() method - that it will always still be possible to call their
other methods to access the data.
That is the theads wont be garbage collected until all references to them
within the program are gone.
Also as a side note - is it possible to restart a thread by calling <thread
object name>.start(); - it didnt seem so when I tried it but this was only a
brief test and no error was generated.
Thanks in advance for your help
Regards
Andrew Mallinson
Ive currently got several threads running in my program that collect data on
how the rest of the program is performing. I just want to make sure that
once these results collection threads have finished ie. got to the end of
their run() method - that it will always still be possible to call their
other methods to access the data.
That is the theads wont be garbage collected until all references to them
within the program are gone.
Also as a side note - is it possible to restart a thread by calling <thread
object name>.start(); - it didnt seem so when I tried it but this was only a
brief test and no error was generated.
Thanks in advance for your help
Regards
Andrew Mallinson