• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Valentin's, Question 4

 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The question wants the following answer to be checked true:

The garbage collection thread cannot outlive the last user thread.

As I understand things, it will ALWAYS outlive the last user thread (though only by a hair). This is actually implied by the opening lines of the explanation to the question

The garbage collection thread is a deamon thread. The latter die when there are no more users threads running.

In other words, they die AFTER the last user thread dies.
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for pointing this out. You get credit for this one
I have changed the option to be
The garbage collection thread will die just after the last user thread dies.
I hope this clears your doubt.
 
reply
    Bookmark Topic Watch Topic
  • New Topic