30

java集合框架之ConcurrentLinkedQueue 深度解析(一) | Spring For All

 5 years ago
source link: http://www.spring4all.com/article/1089?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
### **摘要:**在并发编程中我们有时候需要使用线程安全的队列。如果我们要实现一个线程安全的队列有两种实现方式一种是使用阻塞算法,另一种是使用非阻塞算法。使用阻塞算法的队列可以用一个锁(入队和出队用同一把锁)或两个锁(入队和出队用不同的锁)等方式来实

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK