摘要: CountDownLatch CyclicBarrier Semaphore 1.CountDownLatch 2.CyclicBarrier 3.Semaphore 搞明白 线程 锁和多线程系列 1.CountDownLatch CountDownLatch拥有类似线程计数器的功能, 每个线程执行 阅读全文
posted @ 2018-11-21 10:23 林宇风 阅读(580) 评论(0) 推荐(0) 编辑
摘要: 生产者 消费者 Condition BlockingDeque 1.wait notifyAll 2.ReentrantLock Condition 3.BlockingDeque 搞明白 线程 锁和多线程系列 1.wait notifyAll 首先使用最传统的wait notifyAll sync 阅读全文
posted @ 2018-11-21 09:32 林宇风 阅读(628) 评论(0) 推荐(0) 编辑