摘要: 在研究Executors提供的线程池时自然会想到标题这个问题,既然已经有了newFixedThreadPool,为什么还要存在newSingleThreadExecutor这个方法。难道newFixedThreadPool(1)不是只有一个线程(Single Thread)的?本文将通过分析JDK中 阅读全文
posted @ 2019-12-31 16:40 Robothy 阅读(7110) 评论(0) 推荐(1) 编辑