
public abstract class SimtThreadPool extends AbstractExecutorService implements BaseThreadPool
| Modifier and Type | Class and Description |
|---|---|
static class |
SimtThreadPool.SimtThreadFactory |
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxThreads
The maximum number of threads launched by the runtime
|
protected AtomicInteger |
nbThreadBlocked
Number of activities that can possibly wait at a given moment.
|
protected int |
numThreads |
protected boolean |
shutdownSignal |
protected int |
simtTasks |
protected SimtThreadPool.SimtThreadFactory |
simtThreadFactory |
protected Map<String,int[]> |
workerStats |
| Constructor and Description |
|---|
SimtThreadPool(int numThreads,
boolean asyncMode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long timeout,
TimeUnit unit) |
protected void |
decrementSimtTasks() |
int |
getNbThreadBlocked()
Getter for the field
nbThreadBlocked. |
int |
getParallelism() |
protected int |
getPoolSize() |
String |
getStats()
getStats.
|
protected void |
incrementSimtTasks() |
boolean |
isShutdown() |
boolean |
isTerminated() |
protected void |
registerThreadStats(String threadName,
int[] statsObject) |
protected void |
reportRuntimeError(String exceptionMsg)
reportRuntimeError.
|
void |
shutdown() |
int |
staticGetNumThreadBlockingPoints() |
int |
staticGetNumThreadsCreated() |
void |
staticSetNumThreadBlockingPoints(int numThreadBlockingPoints) |
void |
staticSetNumThreadsCreated(int numThreadsCreated) |
abstract void |
threadBlockedNotification()
Notification when a thread has been blocked by the HJ runtime by some synchronization constraint.
|
void |
threadUnblockedNotification()
Notification when a thread has been unblocked in the HJ runtime by some synchronization constraint.
|
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submitclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, shutdownNowshutdownNowprotected final AtomicInteger nbThreadBlocked
protected final int maxThreads
protected int numThreads
protected SimtThreadPool.SimtThreadFactory simtThreadFactory
protected int simtTasks
protected boolean shutdownSignal
protected void registerThreadStats(String threadName, int[] statsObject)
public final String getStats()
getStats.
getStats in interface BaseThreadPoolprotected int getPoolSize()
public int getParallelism()
getParallelism in interface BaseThreadPoolpublic abstract void threadBlockedNotification()
protected final void reportRuntimeError(String exceptionMsg)
reportRuntimeError.
exceptionMsg - a String object.public final void threadUnblockedNotification()
public final int getNbThreadBlocked()
Getter for the field nbThreadBlocked.
getNbThreadBlocked in interface BaseThreadPoolpublic void shutdown()
shutdown in interface BaseThreadPoolshutdown in interface ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface ExecutorServiceInterruptedExceptionpublic boolean isTerminated()
isTerminated in interface ExecutorServicepublic boolean isShutdown()
isShutdown in interface ExecutorServiceprotected void decrementSimtTasks()
protected void incrementSimtTasks()
public int staticGetNumThreadsCreated()
staticGetNumThreadsCreated in interface BaseThreadPoolpublic void staticSetNumThreadsCreated(int numThreadsCreated)
staticSetNumThreadsCreated in interface BaseThreadPoolpublic int staticGetNumThreadBlockingPoints()
staticGetNumThreadBlockingPoints in interface BaseThreadPoolpublic void staticSetNumThreadBlockingPoints(int numThreadBlockingPoints)
staticSetNumThreadBlockingPoints in interface BaseThreadPoolCopyright © 2015 Rice University - Department of Computer Science. All rights reserved.