Thread JDK 1.0

java.lang runnable

Synopsis^  ?
public class Thread implements Runnable {
// Public Constructors
    public Thread( );  
    public Thread( String name);  
    public Thread( Runnable target);  
    public Thread( ThreadGroup group, Runnable target);  
    public Thread( Runnable target, String name);  
    public Thread( ThreadGroup group, String name);  
    public Thread( ThreadGroup group, Runnable target, String name);  
// Public Constants
    public final static int MAX_PRIORITY; =10 
    public final static int MIN_PRIORITY; =1 
    public final static int NORM_PRIORITY; =5 
// Public Class Methods
    public static int activeCount( );  
    public static Thread currentThread( ); native 
    public static void dumpStack( );  
    public static int enumerate( Thread[ ] tarray);  
    public static boolean interrupted( );  
    public static void sleep( long millis) throws InterruptedException; native 
    public static void sleep( long millis, int nanos) throws InterruptedException;  
    public static void yield( ); native 
// Property Accessor Methods (by property name)
    public final boolean isAlive( ); native default:false 
2.0 public ClassLoader getContextClassLoader( );  
2.0 public void setContextClassLoader( ClassLoader cl);  
    public final boolean isDaemon( ); default:false 
    public final void setDaemon( boolean on);  
    public boolean isInterrupted( ); default:false 
    public final String getName( ); default:"Thread-4" 
    public final void setName( String name);  
    public final int getPriority( ); default:5 
    public final void setPriority( int newPriority);  
    public final ThreadGroup getThreadGroup( );  
// Public Instance Methods
    public final void checkAccess( );  
    public void destroy( );  
    public void interrupt( );  
    public final void join( ) throws InterruptedException;  
    public final void join( long millis) throws InterruptedException; synchronized 
    public final void join( long millis, int nanos) throws InterruptedException; synchronized 
    public void start( ); native synchronized 
// Methods implementing Runnable
    public void run( );  
// Public methods overriding Object
    public String toString( );  
// Deprecated Methods
 #  public int countStackFrames( ); native 
 #  public final void resume( );  
 #  public final void stop( );  
 #  public final void stop( Throwable obj); synchronized 
 #  public final void suspend( );  
}

Hierarchy^  ?

[Object]
   |
[Thread]---<Runnable>

JavaBeans Properties^  ?

  Name    Type    Access    Default    Flags  
  alive    boolean    is    false    read-only   
  contextClassLoader    ClassLoader    get / set    
  daemon    boolean    is / set    false   
  interrupted    boolean    is    false    read-only   
  name    String    get / set    "Thread-4"   
  priority    int    get / set    5   
  threadGroup    ThreadGroup    get     read-only   

Inherited Properties^  ?
Object: class

Inherited Methods^  ?
Object: clone(), equals(), finalize(), hashCode(), notify(), notifyAll(), wait(), wait(), wait()

Passed To^  ?
SecurityManager.checkAccess(), Thread.enumerate(), ThreadGroup.{enumerate(), uncaughtException()}

Returned By^  ?
Thread.currentThread()

Uses^  ?
ClassLoader, Exception, IllegalArgumentException, IllegalThreadStateException, InheritableThreadLocal, InterruptedException, NoSuchMethodError, Object, Runnable, RuntimePermission, SecurityManager, String, StringBuffer, System, ThreadDeath, ThreadGroup, Throwable

Used By^  ?
InheritableThreadLocal, SecurityManager, ThreadGroup, ThreadLocal


Java Power Reference. Created by David Flanagan.
Copyright © 1999 O'Reilly & Associates.All Rights Reserved.

This file may not be distributed on the Internet.