摘要: 1.生产者和消费者模式 1.1 生产者消费者模式 1.2 多生产者和多消费者实战 1.3 线程池与生产消费者模式 2.线程问题定位 3.性能测试 4.异步任务池 5本章小结 阅读全文
posted @ 2019-10-09 12:03 333- 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1. Executor框架简介 1.1 Executor框架的两级调度模式 1.2 Executor框架的结构与成员 2. ThreadPoolExecutor详解 2.1 FixedPoolExecutor详解 2.2 SingleThreadPoolExecutor详解 2.3 CachedTh 阅读全文
posted @ 2019-10-09 12:00 333- 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1. 线程池的实现原理 2. 线程池的使用 2.1 线程池的创建 2.2 向线程池提交任务 2.3 关闭线程池 2.4 合理配置线程池 2.5 线程池监控 3. 本章小结 阅读全文
posted @ 2019-10-09 11:48 333- 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1. 等待做线程完成的CountDownLatch 2. 同步屏障CyclicBarrier 2.1 CycliBarrier简介 2.2 CycliBarrier的应用场景 2.3 CycliBarrier和CountDownLatch的区别 3. 控制并发线程数的Semaphore 4. 线程间 阅读全文
posted @ 2019-10-09 11:43 333- 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1.原子更新基本类型类 2.原子更新数组 3.原子更新引用类型 4.原子更新字段类 5.本章小结 阅读全文
posted @ 2019-10-09 11:39 333- 阅读(195) 评论(1) 推荐(0) 编辑