【多线程】ThreadPoolExcutor线程池一、Executors创建线程池二、ThreadPoolExcutor显示创建线程池
【多线程】ThreadPoolExcutor线程池一、Executors创建线程池1.newFixedThreadPool三级目录2.newSingleThreadExecutor3.newCachedThreadPool4.newScheduledThreadPool二、ThreadPoolExcutor显示创建线程池1.入参说明2.内部执行流程一、Executors创建线程池1.newFixedThreadPool先来看看源码中是怎么构造的:public static ExecutorSer