文章目录
1.世界
1. 介绍
本文主要参考了:https://www.pdai.tech/md/java/thread/java-thread-x-juc-collection-ConcurrentLinkedQueue.html
1.1 问题
- 要想用线程安全的队列有哪些选择?
Vector,Collections.synchronizedList(List<T> list), ConcurrentLinkedQueue
等 ConcurrentLinkedQueue
实现的数据结构?ConcurrentLinkedQueue
底层原理?全程无锁(CAS) ConcurrentLinkedQueue
的核心方法有哪些?- offer(),poll(),peek(),isEmpty()等队列常用方法
- 说说ConcurrentLinkedQueue的HOPS(延迟更新的策略)的设计?
- ConcurrentLinkedQueue适合什么样的使用场景?
1.2 概述
ConcurrentLinkedQueue的数据结构与LinkedB