posted 20 years ago
By default (i.e. unless you use one of the constructors that specifies a ThreadGroup), a new Thread is in the same group as the thread that spawned it. Which is initially the main thread, yes. But if you create thread A in group Q, and then A creates B, C, D without specifying a group, then B, C, D will all be in group Q. If the main thread then creates E, F, and G, those will be in the main group, not Q.
[ January 26, 2004: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister