Update README.md

This commit is contained in:
xingshaocheng
2018-04-21 19:57:29 +08:00
committed by GitHub
parent 32baff04ba
commit b03bca59ca
+2 -2
View File
@@ -320,8 +320,8 @@
## 队列
* [《java队列——queue详细分析》](https://www.cnblogs.com/lemon-flm/p/7877898.html)
* 非阻塞队列:ConcurrentLinkedQueue(无界线程安全),采用CAS机制。
* 阻塞队列:ArrayBlockingQueue、LinkedBlockingQueue、DelayQueue、PriorityBlockingQueue,采用锁机制。
* 非阻塞队列:ConcurrentLinkedQueue(无界线程安全),采用CAS机制(compareAndSwapObject原子操作)。
* 阻塞队列:ArrayBlockingQueue(有界)、LinkedBlockingQueue(无界)、DelayQueue、PriorityBlockingQueue,采用锁机制;使用 ReentrantLock 锁。
* [《LinkedList、ConcurrentLinkedQueue、LinkedBlockingQueue对比分析》](https://www.cnblogs.com/mantu/p/5802393.html)