mirror of
https://github.com/xingshaocheng/architect-awesome.git
synced 2026-11-26 15:54:26 +00:00
Update README.md
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user