Is there a way that I can get the number of threads currently executing within the JVM?

Brandon Rohlfs

You can use activeCount() for this. activeCount() returns the number of active threads that are part of the current thread's thread group.

static int activeCount()
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact