java.lang
Class Thread
java.lang.Object
|
+--java.lang.Thread
- public abstract class Thread
- extends Object
A thread (task) of execution.
Method Summary |
boolean |
isAlive()
|
abstract void |
run()
Must be implemented by subclasses. |
void |
start()
Starts this thread. |
static void |
yield()
Preempts the current thread. |
Thread
public Thread()
isAlive
public boolean isAlive()
start
public void start()
- Starts this thread. May throw OutOfMemoryError if
more than 254 threads are started.
run
public abstract void run()
- Must be implemented by subclasses.
Not to be called directly, execution
of this method is scheduled by start().
yield
public static void yield()
- Preempts the current thread.