Re: Question about a Thread
Posted By:
Kian_Parsee
Posted On:
Wednesday, October 16, 2002 11:28 AM
I believe your thread will still be alive if you set the reference to null. A thread is "alive" as long as it has not finished processing.
A note on System.gc(): this does not necessarily invoke the garbage collector immediately.
Calling the gc method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick reuse. The key word here is "suggests".