All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.Thread
Summary |
public class Thread extends java.lang.Object { // Constructors 1 private Thread(); // Methods 5 public static Object getObject(); public static Object setObject(Object); public static void sleep(long, int) throws InterruptedException; public static void yield(); public static void yieldTo(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()
.
See Also: Flow.threadStart
Constructors |
· Thread | Summary | Top |
private Thread()
Methods |
· yieldTo | Summary | Top |
public static void yieldTo(Thread yieldTo)
The mighty directed yield.
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.
Parameter Description yieldTo the thread that should be run in deference to the current thread.
· yield | Summary | Top |
public static void yield()
An undirected yield.
Equivalent to
yield(null)
.
· sleep | Summary | Top |
public static void sleep(long millis, int nanos) throws InterruptedException
Put the current thread to sleep for at least the given amount of time.
Operates on the current thread, implicitly.
· setObject | Summary | Top |
public static Object setObject(Object obj)
Set the per-thread object pointer. Operates on the current thread, implicitly.
Returns the old object.
· getObject | Summary | Top |
public static Object getObject()
Get the per-thread object pointer. Operates on the current thread, implicitly.
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7