Lines Matching defs:pool
42 * This thread pool maintains a number of threads that run the tasks from a task
45 * by the thread pool.
47 * This thread pool has a fixed size of threads. It maintains all the tasks to
52 * This guarantees the thread pool will not use up the system resources under
66 * Constructs a thread pool with given parameters.
69 * name of the thread pool.
71 * the thread pool size, indicates how many threads are created
72 * in the pool.
83 * Create threads for the pool.
132 private ThreadPool pool;
135 public WorkerThread(String name, ThreadPool pool) {
137 this.pool = pool;
141 * Starts the thread pool.
153 pool.lock.lock();
154 if (!pool.taskList.isEmpty()) {
157 pool.hasTasks.await();
163 pool.lock.unlock();