Method activeCount()
Return type: int
Member of:
java.lang.Thread
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
String nid = current.activeCount()+
2
p.println (newIndent+" threads="+Thread.activeCount());
3
(threads > 0 && Thread.activeCount() > threads)) {
4
Thread[] list = new Thread[Thread.activeCount()];
5
int tcount = Thread.activeCount() ;
6
System.out.println("Active Threads=" + Thread.activeCount());
7
while (Thread.activeCount() > maxThreads) {
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.