|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpt.runtime.AbstractTaskPool
pt.runtime.TaskpoolLIFOWorkStealing
public class TaskpoolLIFOWorkStealing
There is no global queue, all tasks are placed on private queues in a round-robin fashion. If workers start to run out of work, then they steal (randomly) from another worker. [this is similar to JCilk]. (Maybe this could be enhanced by favoring to steal from a worker that we last succeeded to steal from). Private queues are ordered such that workers get the head, while thiefs get the tail.
Field Summary |
---|
Fields inherited from class pt.runtime.AbstractTaskPool |
---|
FIFO_TaskID_Comparator, globalTaskqueue, INITIAL_QUEUE_CAPACITY, lastStolenFrom, LIFO_TaskID_Comparator, localQueues, mixedQueue, NOT_STOLEN, numThreads, privateQueues, waitingTasks, workers |
Constructor Summary | |
---|---|
TaskpoolLIFOWorkStealing()
|
Method Summary | |
---|---|
protected void |
enqueueReadyTask(TaskID<?> taskID)
|
protected void |
initialise()
|
TaskID |
workerPollNextTask()
The worker thread polls the task pool for a task.. |
Methods inherited from class pt.runtime.AbstractTaskPool |
---|
enqueue, enqueueMulti, enqueueWaitingTask, executeSynchronously, getActiveInteractiveTaskCount, initialiseWorkerThreads, interactiveTaskCompleted, nowReady, printDebugInfo, startInteractiveTask, startPipelineTask, totalNumTasksExecuted, workerTakeNextTask |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskpoolLIFOWorkStealing()
Method Detail |
---|
protected void enqueueReadyTask(TaskID<?> taskID)
enqueueReadyTask
in class AbstractTaskPool
public TaskID workerPollNextTask()
Taskpool
workerPollNextTask
in interface Taskpool
workerPollNextTask
in class AbstractTaskPool
protected void initialise()
initialise
in class AbstractTaskPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |