Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k points)

I’ve a method java.lang.ThreadGroup.activeGroupCount() which returns an estimate of the number of active groups in a thread group. Can anyone tell me what active groups mean in Java?

1 Answer

0 votes
by (19.7k points)

You can find "active thread group" in ThreadGroup::activeGroupCount. For more information, see here 

An active thread group is a ThreadGroup containing at least one active thread. It is when Thread::isAlive returns true. 

Interested in Java? Check out this Java tutorial by Intellipaat. 

Related questions

0 votes
1 answer
asked Mar 8, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
asked Jul 10, 2019 in Java by alan99 (830 points)
0 votes
1 answer
asked Feb 19, 2021 in Java by sheela_singh (9.5k points)
0 votes
1 answer

Browse Categories

...