一.简介线程池类为 java.util.concurrent.ThreadPoolExecutor,常用构造方法为:ThreadPoolExecutor(int corePoolSize, int maximumPoolSize,long keepAliveTime, TimeUnit unit,BlockingQueue workQueue, RejectedExecutionHandler handler)corePoolSize: 线程池维护线程的最少数量maximumPoolSize:线…