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 Java Interview Guide this week in the Jobs Discussion 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: 303
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: 13037
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: 42965
  73 should be of interest.
I agree. Here's the link:
subject: Count no. of Thread
It's not a secret anymore!