From b03bca59ca735a6c6c0bf62b733c169e079a976a Mon Sep 17 00:00:00 2001 From: xingshaocheng Date: Sat, 21 Apr 2018 19:57:29 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a5d2b6c..9e3924b 100644 --- a/README.md +++ b/README.md @@ -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)