![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
多线程
文章平均质量分 83
孺子韫
君子务本,本立而道生!!!
展开
-
阻塞队列的分类
BlockingQueue1. ArrayBlockingQueue2. LinkedBlockingQueue3. DelayQueue4. PriorityBlockingQueue5. SynchronousQueue附录:arrayblockingqueue和linkedblockqueue的区别 1. ArrayBlockingQueue 基于数组的阻塞队列实现,在ArrayBlockingQueue内部,维护了一个定长数组,以便缓存队列中的数据对象,这是一个常用的阻塞队列,除了一个定长数组外,原创 2021-04-27 11:46:13 · 240 阅读 · 0 评论 -
线程池的分类
线程池的分类1 ThreadPoolExecutor1.1 newCachedThreadPool1.2 newFixedThreadPool1.3 newSingleThreadExecutor2.ScheduledThreadPoolExecutor2.1 newScheduledThreadPool2.2 newSingleThreadScheduledExecutor4.ForkJoinPool4.1 newWorkStealingPool 1 ThreadPoolExecutor 1.1 newC原创 2021-04-26 11:50:20 · 220 阅读 · 0 评论