ThreadGroup.enumerate(Thread[]) Vs ThreadGroup.enumerate(Thread[],boolean)
Alec Lee
Ranch Hand
Joined: Jan 28, 2004
Posts: 568
posted
0
The javadoc for these 2 methods: ThreadGroup.enumerate(Thread[]) Vs ThreadGroup.enumerate(Thread[],boolean) seems to refer to the same thing. Both listing the active threads in the current thread group PLUS the active threads in subgroups of the current group. What are the difference between them?
Harry Ram
Greenhorn
Joined: Dec 08, 2009
Posts: 1
posted
0
By default, the ThreadGroup.enumerate(Thread[]) method copies all the active thread in this thread group and its subgroup. The other method can be used with the boolean value set to false when you need to copy only the active threads of this group and not its subgroup.
Alec Lee
Ranch Hand
Joined: Jan 28, 2004
Posts: 568
posted
0
So, ThreadGroup.enumerate(Thread[] t) equivalent to ThreadGroup.enumerate(Thread[] t,true) ?