1. CachedThreadPool线程池(可向下转型为ThreadPoolExecutor)
1.1 线程池核心线程数是0,说明线程空闲时,会被自动回收。
1.2 任务队列只能有一个任务,而且最大线程数是整数最大值。所以有任务就会创建线程处理,这就要求任务执行时间要短,不然会创建很多线程
2. FixedThreadPool线程池(可向下转型为ThreadPoolExecutor)
2.1 核心线程数和最大线程数相等,不存在线程回收
3. SingleThreadExecutor线程池
3.1 只能创建一个线程的SingleThreadExecutor线程池和线程的区别
3.2 线