
java多线程
文章平均质量分 79
DGrain
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
用ThreadPoolExecutor手动创建线程池
用ThreadPoolExecutor手动创建线程池 首先我们看一下ThreadPoolExecutor的构造方法 public ThreadPoolExecutor(int corePoolSize, // 核心线程池大小 int maximumPoolSize, // 最大线程池大小 lon...原创 2020-04-04 18:30:59 · 37961 阅读 · 1 评论 -
java中Executors创建线程池的三种方法
三个关键线程池的比较 1、创建单个线程(单例模式) public static ExecutorService newSingleThreadExecutor() { return new FinalizableDelegatedExecutorService (new ThreadPoolExecutor(1, 1, ...原创 2020-04-04 17:10:59 · 36566 阅读 · 0 评论