摘要:
public class ThreadPoolExecutor1 extends AbstractExecutorService1 { // 11100000000000000000000000000000 = -536870912, 高3位表示线程池状态, 后29位表示线程个数 private final AtomicInteger ctl = new AtomicInteg... 阅读全文
posted @ 2019-08-19 17:00
无天666
阅读(229)
评论(0)
推荐(0)
摘要:
参考:https://www.cnblogs.com/liuyun1995/p/9305273.html ThreadPoolExecutor1 executorService1 = new ThreadPoolExecutor1(3) 线程池的线程是懒初始化的,第一个任务来了创建一下执行,执行完了 阅读全文
posted @ 2019-08-19 16:14
无天666
阅读(211)
评论(0)
推荐(0)

浙公网安备 33010602011771号