aspose file tools
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
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: 12889
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: 42954
  73 should be of interest.
It is sorta covered in the JavaRanch Style Guide.
subject: Count no. of Thread