JVM Threads

Is there a way to list all the threads in current instance of JVM...Tito
[86 byte] By [titogeoa] at [2007-10-3 7:51:02]
# 1
A profiler (for example the NetBeans profiler) can do this
YoGeea at 2007-7-15 2:52:59 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
is there any way to list threads programatically. just the names of those threads...
titogeoa at 2007-7-15 2:52:59 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
Yes, look at the docs for java.lang.Thread and java.lang.ThreadGroup
tel00a at 2007-7-15 2:52:59 > top of Java-index,Java HotSpot Virtual Machine,Specifications...