Java-技术专题-多线程之线程池
一、线程池的构造
使用线程池离不开ThreadPoolExecutor类,该类实现了ExecutorService接口,其构造方法如下:
public ThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
TimeUnit unit,
BlockingQueue<Runnable> workQueue,
ThreadFactory threadFactory,
Rejecte...