public class ThreadPool extends Object
Constructor and Description |
---|
ThreadPool(int noOfThreads,
SimpleBlockingQueue queue) |
ThreadPool(int noOfThreads,
String threadNamePrefix,
SimpleBlockingQueue queue) |
public ThreadPool(int noOfThreads, SimpleBlockingQueue queue)
public ThreadPool(int noOfThreads, String threadNamePrefix, SimpleBlockingQueue queue)
public void execute(Runnable task) throws InterruptedException
InterruptedException
public void stop(boolean interrupt)
Copyright © 2000–2022 EPAM Systems. All rights reserved.