Thread Garbage Collection

deriggi used Ask the Experts™
Are there any circumstances under which a running thread will be Garbage Collected?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Not without some spectacular VM error ;-)
Mick BarryJava Developer
Top Expert 2010

No. Any object will not be available to be collected until there are no remaining references to it.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial