Package | Description |
---|---|
com.sun.electric.tool.util.concurrent.runtime.taskParallel |
Modifier and Type | Method and Description |
---|---|
static ThreadPool.ThreadPoolType |
ThreadPool.ThreadPoolType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadPool.ThreadPoolType[] |
ThreadPool.ThreadPoolType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static PoolWorkerStrategy |
ThreadPool.PoolWorkerStrategyFactory.createStrategy(IStructure<PTask> taskPool,
ThreadPool.ThreadPoolType type) |
static ThreadPool |
ThreadPool.initialize(IStructure<PTask> taskPool,
int numOfThreads,
ThreadPool.ThreadPoolType type)
initialize thread pool with specific task pool and number of threads
|
static ThreadPool[] |
ThreadPool.initialize(IStructure<PTask> taskPool1,
int numOfThreads1,
ThreadPool.ThreadPoolType type1,
IStructure<PTask> taskPool2,
int numOfThreads2,
ThreadPool.ThreadPoolType type2)
create a double thread pool (two thread pool side by side)
|
static ThreadPool |
ThreadPool.initialize(Scheduler.SchedulingStrategy taskPool,
int numOfThreads,
ThreadPool.ThreadPoolType type) |
Constructor and Description |
---|
ThreadPool(IStructure<PTask> taskPool,
int numOfThreads,
ThreadPool.ThreadPoolType type)
prevent from creating thread pools via constructor
|