File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes Count no. of Thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Count no. of Thread" Watch "Count no. of Thread" New topic

Count no. of Thread

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
How can we know that how many threads running in a programme.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12982
Look into the java.lang.ThreadGroup documentation.

AjayKumar Panigrahi

Joined: Nov 21, 2009
Posts: 21
Hey Pankaj..

Check java.lang.ThreadGroup

and locate methods those start with act.... You will get the solution

Ajay Kumar, SCJP5
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
  73 should be of interest.
I agree. Here's the link:
subject: Count no. of Thread
It's not a secret anymore!