|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.utah.janos.nodeos.Thread
A Janos Thread. java.lang.Thread
is not visible to
threads running on the NodeOS.
There are no visible Thread objects in Janos (all the methods
here are static ones). New threads are created either implicitly
in response to packets, or explicitly by a call to
Flow.threadStart(...)
.
Flow.threadStart(java.lang.Runnable,String)
Method Summary | |
static java.lang.Object |
getObject()
Get the per-thread object pointer. |
static java.lang.Object |
setObject(java.lang.Object obj)
Set the per-thread object pointer. |
static void |
sleep(long millis,
int nanos)
Put the current thread to sleep for at least the given amount of time. |
static void |
yield()
An undirected yield. |
static void |
yieldTo(Thread yieldTo)
The mighty directed yield. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static void yieldTo(Thread yieldTo)
The scheduler may honor the argument. Or it may laugh at your suggestion and put the target thread in a black hole just to spite you.
Operates on the current thread, implicitly.
yieldTo
- the thread that should be run in deference to the current thread.public static void yield()
Equivalent to yield(null)
.
public static void sleep(long millis, int nanos) throws java.lang.InterruptedException
Operates on the current thread, implicitly.
public static java.lang.Object setObject(java.lang.Object obj)
Returns the old object.
public static java.lang.Object getObject()
|
JNodeOS v1.1.5 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |