Java Thread Dump dumpThreads()

Here you can find the source of dumpThreads()

Description

dump Threads

License

Open Source License

Declaration

public static void dumpThreads() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static void dumpThreads() {
        ThreadGroup threadgroup1 = null;
        for (ThreadGroup threadgroup = Thread.currentThread()
                .getThreadGroup(); threadgroup != null; threadgroup = threadgroup.getParent()) {
            threadgroup1 = threadgroup;// w w  w  .  j ava 2 s. com
        }

        threadgroup1.list();
    }
}

Related

  1. dumpStack(Thread t)
  2. dumpThreadGroup(ThreadGroup tg, StringBuffer sb)
  3. dumpThreads()