
public class WorkStealingThreadPool extends SimtThreadPool
SimtThreadPool.SimtThreadFactorymaxThreads, nbThreadBlocked, numThreads, shutdownSignal, simtThreadFactory, workerStats| Constructor and Description |
|---|
WorkStealingThreadPool(int numThreads,
boolean asyncMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(Runnable command)
Main execute
|
long |
getQueuedTaskCount() |
ArrayList<Runnable> |
shutdownNow() |
void |
threadBlockedNotification()
Notification when a thread has been blocked by the HJ runtime by some synchronization constraint.
|
awaitTermination, decrementSimtTasks, getNbThreadBlocked, getParallelism, getPoolSize, getStats, incrementSimtTasks, isShutdown, isTerminated, registerThreadStats, reportRuntimeError, shutdown, staticGetNumThreadBlockingPoints, staticGetNumThreadsCreated, staticSetNumThreadBlockingPoints, staticSetNumThreadsCreated, threadUnblockedNotificationinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitpublic WorkStealingThreadPool(int numThreads,
boolean asyncMode)
public final void threadBlockedNotification()
threadBlockedNotification in class SimtThreadPoolpublic final void execute(Runnable command)
Main execute
command - Task to runpublic long getQueuedTaskCount()
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.