Save This Page
Home » apache-harmony-6.0-src-r917296-snapshot » java » lang » [javadoc | source]
java.lang
public class: Thread [javadoc | source]
java.lang.Object
   java.lang.Thread

All Implemented Interfaces:
    Runnable

Nested Class Summary:
public enum class  Thread.State   
public static interface  Thread.UncaughtExceptionHandler   
Field Summary
public static final  int MAX_PRIORITY   
    com.intel.drl.spec_ref:
 
public static final  int MIN_PRIORITY   
    com.intel.drl.spec_ref:
 
public static final  int NORM_PRIORITY   
    com.intel.drl.spec_ref:
 
 ThreadGroup group    This thread's thread group 
 boolean started    Indicates if the thread was already started 
 boolean isAlive    Indicates if the thread is alive. 
 Object lock    Synchronization is done using internal lock. 
static  ThreadGroup systemThreadGroup    System thread group for keeping helper threads. 
static  ThreadGroup mainThreadGroup    Main thread group. 
 Values localValues     
 Values inheritableValues     
Constructor:
 public Thread() 
 public Thread(Runnable target) 
    com.intel.drl.spec_ref:
 public Thread(String name) 
    com.intel.drl.spec_ref:
 public Thread(Runnable target,
    String name) 
    com.intel.drl.spec_ref:
 public Thread(ThreadGroup group,
    Runnable target) 
    com.intel.drl.spec_ref:
 public Thread(ThreadGroup group,
    String name) 
    com.intel.drl.spec_ref:
 public Thread(ThreadGroup group,
    Runnable target,
    String name) 
    com.intel.drl.spec_ref:
 public Thread(ThreadGroup group,
    Runnable target,
    String name,
    long stackSize) 
    com.intel.drl.spec_ref:
 Thread(ThreadGroup group,
    String name,
    long nativeAddr,
    long stackSize,
    int priority,
    boolean daemon) 
    Creates a new thread object for the thread attached to VM. The first attached thread is the main thread.
    Parameters:
    group - determines the thread group to place the thread in
    name - thread's name
    nativeAddr - address of the attached native thread
    stackeSize - size of the thread's stack
    priority - thread's priority
    daemon - true if the thread is daemon, false otherwise
Method from java.lang.Thread Summary:
activeCount,   checkAccess,   countStackFrames,   currentThread,   destroy,   detach,   dumpStack,   enumerate,   getAllStackTraces,   getContextClassLoader,   getDefaultUncaughtExceptionHandler,   getId,   getName,   getPriority,   getStackTrace,   getState,   getThreadGroup,   getUncaughtExceptionHandler,   holdsLock,   interrupt,   interrupted,   isAlive,   isDaemon,   isInterrupted,   join,   join,   join,   resume,   run,   runImpl,   setContextClassLoader,   setDaemon,   setDefaultUncaughtExceptionHandler,   setName,   setPriority,   setUncaughtExceptionHandler,   sleep,   sleep,   start,   stop,   stop,   suspend,   toString,   yield
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.lang.Thread Detail:
 public static int activeCount() 
 public final  void checkAccess() 
 public int countStackFrames() 
Deprecated!
 public static Thread currentThread() 
 public  void destroy() 
Deprecated!
  void detach(Throwable uncaughtException) 
    Performs premortal actions. First it processes uncaught exception if any. Second removes current thread from its thread group. VM calls this method when current thread is detaching from VM.
 public static  void dumpStack() 
 public static int enumerate(Thread[] list) 
 public static Map<Thread, StackTraceElement> getAllStackTraces() 
 public ClassLoader getContextClassLoader() 
 public static UncaughtExceptionHandler getDefaultUncaughtExceptionHandler() 
 public long getId() 
 public final String getName() 
 public final int getPriority() 
 public StackTraceElement[] getStackTrace() 
 public State getState() 
 public final ThreadGroup getThreadGroup() 
 public UncaughtExceptionHandler getUncaughtExceptionHandler() 
 public static boolean holdsLock(Object object) 
 public  void interrupt() 
 public static boolean interrupted() 
 public final boolean isAlive() 
 public final boolean isDaemon() 
 public boolean isInterrupted() 
 public final synchronized  void join() throws InterruptedException 
 public final synchronized  void join(long millis) throws InterruptedException 
 public final synchronized  void join(long millis,
    int nanos) throws InterruptedException 
 public final  void resume() 
Deprecated!
    Note that this is unsnchronized - the assumption is that hythread does the synchronization for us
 public  void run() 
  void runImpl() 
 public  void setContextClassLoader(ClassLoader classLoader) 
 public final  void setDaemon(boolean daemon) 
 public static  void setDefaultUncaughtExceptionHandler(UncaughtExceptionHandler eh) 
 public final  void setName(String name) 
 public final  void setPriority(int priority) 
 public  void setUncaughtExceptionHandler(UncaughtExceptionHandler eh) 
 public static  void sleep(long millis) throws InterruptedException 
 public static  void sleep(long millis,
    int nanos) throws InterruptedException 
 public synchronized  void start() 
 public final  void stop() 
Deprecated!
 public final  void stop(Throwable throwable) 
Deprecated!
 public final  void suspend() 
Deprecated!
    Note that this is unsnchronized - the assumption is that hythread does the synchronization for us
 public String toString() 
 public static  void yield()