2)A demon Thread group a)has only demon threads. b)can have non demon threads. c)does not exist after all non demon threads in the group have finished executing. d)does not exist after all the threads in the group have finished executing. Ans 2,4 What is a demon Thread Group ?? Demon Thread Group
Demon Thread Group - an evil, evil thread group. You're probably talking about a Daemon thread group. This is just like a nondaemon thread group, except for this quip from the API, which I don't fully understand:
A daemon thread group is automatically destroyed when its last thread is stopped or its last thread group is destroyed.
Originally posted by Paul Villangca: Anyone care to elaborate? Thanks!
That means, simply, that, given a daemon thread group, if all of the threads within the group terminate (for any reason), the entire group is destroyed. It doesn't really make a whole lot of sense to have a group of non-running daemon threads, anyway. :roll: Corey