摘要:
public class ThreadPoolExecutor1 extends AbstractExecutorService1 { // 11100000000000000000000000000000 = -536870912, 高3位表示线程池状态, 后29位表示线程个数 private final AtomicInteger ctl = new AtomicInteg... 阅读全文
摘要:
参考:https://www.cnblogs.com/liuyun1995/p/9305273.html ThreadPoolExecutor1 executorService1 = new ThreadPoolExecutor1(3) 线程池的线程是懒初始化的,第一个任务来了创建一下执行,执行完了 阅读全文