|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--java.lang.Thread
| Field Summary | |
static int |
MAX_PRIORITY
The maximum possible priority |
static int |
MIN_PRIORITY
The minimum possible priority |
static int |
NORM_PRIORITY
The normal priority |
| Constructor Summary | |
|
Thread()
Create a new thread |
protected |
Thread(int size,
java.lang.String name)
Create a new thread using the specified size for the stack |
|
Thread(Runnable r)
Create a new thread using a runnable object |
|
Thread(Runnable r,
java.lang.String name)
Create a new thread using a runnable object and name |
|
Thread(java.lang.String name)
Create a new thread with a name |
| Method Summary | |
static int |
activeCount()
Get the count of native threads in the VM |
static Thread |
currentThread()
Get the current thread reference |
java.lang.String |
getName()
Get the name of the thread |
int |
getPriority()
Get the priority of the thread |
boolean |
isAlive()
Test to see if the thread is alive |
void |
join()
Wait for this thread to die |
void |
run()
Run - main task |
void |
setPriority(int newPriority)
Set the priority |
static void |
sleep(long ms)
Sleep for a period of time |
void |
start()
start the thread |
java.lang.String |
toString()
Convert to a string |
static void |
yield()
yield to allow other threads some control |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MAX_PRIORITY
public static final int MIN_PRIORITY
public static final int NORM_PRIORITY
| Constructor Detail |
public Thread()
public Thread(java.lang.String name)
name - The name of the thread
protected Thread(int size,
java.lang.String name)
name - The namepublic Thread(Runnable r)
r - The runnable object
public Thread(Runnable r,
java.lang.String name)
r - The runnable objectname - The name| Method Detail |
public static void yield()
public static void sleep(long ms)
throws InterruptedException
ms - The time to sleep in milliseconds
InterruptedExceptionpublic void start()
public void run()
run in interface Runnablepublic final boolean isAlive()
public final void setPriority(int newPriority)
newPriority - The new prioritypublic final int getPriority()
public final void join()
throws InterruptedException
InterruptedExceptionpublic final java.lang.String getName()
public java.lang.String toString()
toString in class Objectpublic static Thread currentThread()
public static int activeCount()
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||