java.lang
Class Thread

java.lang.Object
  |
  +--java.lang.Thread
All Implemented Interfaces:
Runnable

public synchronized class Thread
extends Object
implements Runnable


Field Summary
static int MAX_PRIORITY
           
static int MIN_PRIORITY
           
static int NORM_PRIORITY
           
 
Constructor Summary
Thread()
           
Thread(Runnable)
           
Thread(Runnable, String)
           
Thread(String)
           
Thread(ThreadGroup, Runnable)
           
Thread(ThreadGroup, Runnable, String)
           
Thread(ThreadGroup, Runnable, String, long)
           
Thread(ThreadGroup, String)
           
 
Method Summary
static int activeCount()
           
 void checkAccess()
           
 int countStackFrames()
           
static Thread currentThread()
           
 void destroy()
           
static void dumpStack()
           
static int enumerate(Thread[])
           
 ClassLoader getContextClassLoader()
           
 String getName()
           
 int getPriority()
           
 ThreadGroup getThreadGroup()
           
static boolean holdsLock(Object)
           
 void interrupt()
           
static boolean interrupted()
           
 boolean isAlive()
           
 boolean isDaemon()
           
 boolean isInterrupted()
           
 void join()
           
 void join(long)
           
 void join(long, int)
           
 void resume()
           
 void run()
           
 void setContextClassLoader(ClassLoader)
           
 void setDaemon(boolean)
           
 void setName(String)
           
 void setPriority(int)
           
static void sleep(long)
           
static void sleep(long, int)
           
 void start()
           
 void stop()
           
 void stop(Throwable)
           
 void suspend()
           
 String toString()
           
static void yield()
           
 
Methods inherited from class java.lang.Object
equals, hashCode
 

Field Detail

MIN_PRIORITY

public static final int MIN_PRIORITY

NORM_PRIORITY

public static final int NORM_PRIORITY

MAX_PRIORITY

public static final int MAX_PRIORITY
Constructor Detail

Thread

public Thread()

Thread

public Thread(Runnable)

Thread

public Thread(ThreadGroup,
              Runnable)

Thread

public Thread(String)

Thread

public Thread(ThreadGroup,
              String)

Thread

public Thread(Runnable,
              String)

Thread

public Thread(ThreadGroup,
              Runnable,
              String)

Thread

public Thread(ThreadGroup,
              Runnable,
              String,
              long)
Method Detail

currentThread

public static Thread currentThread()

yield

public static void yield()

sleep

public static void sleep(long)
                  throws InterruptedException

sleep

public static void sleep(long,
                         int)
                  throws InterruptedException

start

public void start()

run

public void run()
Specified by:
run in interface Runnable

stop

public final void stop()

stop

public final void stop(Throwable)

interrupt

public void interrupt()

interrupted

public static boolean interrupted()

isInterrupted

public boolean isInterrupted()

destroy

public void destroy()

isAlive

public final boolean isAlive()

suspend

public final void suspend()

resume

public final void resume()

setPriority

public final void setPriority(int)

getPriority

public final int getPriority()

setName

public final void setName(String)

getName

public final String getName()

getThreadGroup

public final ThreadGroup getThreadGroup()

activeCount

public static int activeCount()

enumerate

public static int enumerate(Thread[])

countStackFrames

public int countStackFrames()

join

public final void join(long)
                throws InterruptedException

join

public final void join(long,
                       int)
                throws InterruptedException

join

public final void join()
                throws InterruptedException

dumpStack

public static void dumpStack()

setDaemon

public final void setDaemon(boolean)

isDaemon

public final boolean isDaemon()

checkAccess

public final void checkAccess()

toString

public String toString()
Overrides:
toString in class Object

getContextClassLoader

public ClassLoader getContextClassLoader()

setContextClassLoader

public void setContextClassLoader(ClassLoader)

holdsLock

public static boolean holdsLock(Object)