Have you looked at the Thread class and the System class? One of them might have some tools you could use.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Thread.getAllStackTraces() returns a map of stack traces for all live threads. You could ignore the stack traces and just look at the keys in that map for a list of all live threads.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073