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
In Groovy you can call private methods
// Get a snapshot of the list of all threads Thread[] threads = Thread.getThreads()
In Java, you can invoke that method using reflection provided that security manager allows it.