一、查看创建线程池底层的源码,即ThreadPoolExecutor.java里面的构造方法,如下所示: public ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable>