public class WorkSharingThreadPool extends SimtThreadPool
SimtThreadPool.SimtThreadFactory
maxThreads, nbThreadBlocked, numThreads, shutdownSignal, simtTasks, simtThreadFactory, workerStats
Constructor and Description |
---|
WorkSharingThreadPool(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, threadUnblockedNotification
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public WorkSharingThreadPool(int numThreads, boolean asyncMode)
public final void threadBlockedNotification()
threadBlockedNotification
in class SimtThreadPool
public final void execute(Runnable command)
Main execute
command
- Task to runpublic long getQueuedTaskCount()
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.