Thread Methods:
public void start()
public void run()
public final void setName(String name)
public final void setPriority(int priority)
public final void setDaemon(boolean on)
public final void join(long millisec)
public void interrupt()
public final boolean isAlive()
The previous methods are invoked on a particular Thread object. The following methods in the Thread class are static. Invoking one of the static methods performs the operation on the currently running thread.
Methods with Description
public static void yield()
public static void sleep(long millisec)
public static boolean holdsLock(Object x)
public static Thread currentThread()
public static void dumpStack()
No comments:
Post a Comment