public int getActiveThread(){
ThreadGroup threadGroup = Thread.currentThread().getThreadGroup();
while(threadGroup.getParent() != null){
threadGroup = threadGroup.getParent();
}
int totalThread = threadGroup.activeCount();
return totalThread ;
}
Thread Group getActiveThread
最新推荐文章于 2023-12-29 21:55:32 发布