Threads and Garbage Collection
From: Andrew Mallinson (A.Mallinson_at_warwick.ac.uk)
Date: 01/30/04
- Next message: Berlin Brown: "Java socket getOutputStream, lose connection"
- Previous message: Joona I Palaste: "Re: Best Java Compiler To Use?"
- Next in thread: BarryNL: "Re: Threads and Garbage Collection"
- Reply: BarryNL: "Re: Threads and Garbage Collection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 10:34:13 -0000
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
- Next message: Berlin Brown: "Java socket getOutputStream, lose connection"
- Previous message: Joona I Palaste: "Re: Best Java Compiler To Use?"
- Next in thread: BarryNL: "Re: Threads and Garbage Collection"
- Reply: BarryNL: "Re: Threads and Garbage Collection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]