Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.lang.Thread

Availability: JDK 1.0

public class Thread extends Object implements Runnable {
   // Public Constructors
      public Thread();
      public Thread(Runnable target);
      public Thread(ThreadGroup group, Runnable target);
      public Thread(String name);
      public Thread(ThreadGroup group, String name);
      public Thread(Runnable target, String name);
      public Thread(ThreadGroup group, Runnable target, String name);
   // Constants
      public static final int MAX_PRIORITY;
      public static final int MIN_PRIORITY;
      public static final int NORM_PRIORITY;
   // Class Methods
      public static int activeCount();
      public static native Thread currentThread();
      public static void dumpStack();
      public static int enumerate(Thread[] tarray);
      public static boolean interrupted();
      public static native void sleep(long millis) throws InterruptedException;
      public static void sleep(long millis, int nanos) throws InterruptedException;
      public static native void yield();
   // Public Instance Methods
      public void checkAccess();
      public native int countStackFrames();
      public void destroy();
      public final String getName();
      public final int getPriority();
      public final ThreadGroup getThreadGroup();
      public void interrupt();
      public final native boolean isAlive();
      public final boolean isDaemon();
      public boolean isInterrupted();
      public final synchronized void join(long millis) throws InterruptedException;
      public final synchronized void join(long millis, int nanos) throws InterruptedException;
      public final void join() throws InterruptedException;
      public final void resume();
      public void run();
      public final void setDaemon(boolean on);
      public final void setName(String name);
      public final void setPriority(int newPriority);
      public synchronized native void start();
      public final void stop();
      public final synchronized void stop(Throwable o);
      public final void suspend();
      public String toString();  // Overrides Object.toString()
}
Passed To:
RMISecurityManager.checkAccess(), SecurityManager.checkAccess(), Thread.enumerate(), ThreadGroup.enumerate(), ThreadGroup.uncaughtException().
Returned By:
Thread.currentThread().

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.