Is there any way I can get a list of all running threads in the current JVM (including the threads not started by my class)?
Is it also possible to get the
Apache Commons users can use ThreadUtils. The current implementation uses the walk the thread group approach previously outlined.
for (Thread t : ThreadUtils.getAllThreads()) { System.out.println(t.getName() + ", " + t.isDaemon()); }