Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

# of Threads  RSS feed

 
Aamir Majeed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I want to get number of threads which is running under my Java application ,
can any budy help me in this regards
Thanx
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aamir
The activeCount method will return the number of active threads in the current thread group. If you haven't created any other thread groups then this will be the number of threads in the main (default) thread group.

Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!