Package se.sics.kompics.scheduler
Class Worker
java.lang.Object
java.lang.Thread
se.sics.kompics.scheduler.Worker
- All Implemented Interfaces:
Runnable
public class Worker extends Thread
The
Worker
class.- Version:
- $Id$
- Author:
- Cosmin Arad <[email protected]>, Jim Dowling <[email protected]>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Worker(WorkStealingScheduler scheduler, int wid)
Instantiates a new worker. -
Method Summary
Modifier and Type Method Description int
getWid()
Gets the wid.int
getWorkCount()
Gets the work count.void
run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield