j3d.examples.common
Class ThreadLister

java.lang.Object
  extended by j3d.examples.common.ThreadLister

public class ThreadLister
extends java.lang.Object

This class contains a useful static method for listing all threads and threadgroups in the VM. It also has a simple main() method so it can be run as a standalone program.


Nested Class Summary
static class ThreadLister.Applet
          This nested class is a simple applet that displays the output of ThreadLister.listAllThreads() when run from an the start() method of an applet.
 
Constructor Summary
ThreadLister()
           
 
Method Summary
static void listAllThreads(java.io.PrintWriter out)
          Find the root thread group and list it recursively
static void main(java.lang.String[] args)
          The main() method: just print the list of threads to the console
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLister

public ThreadLister()
Method Detail

listAllThreads

public static void listAllThreads(java.io.PrintWriter out)
Find the root thread group and list it recursively


main

public static void main(java.lang.String[] args)
The main() method: just print the list of threads to the console