Felix's BlogFelix's Blog
  • 首页
  • 提示
  • 基础环境整理
  • 计算机基础
  • Java
  • 数据库
  • 消息中间件
  • Spring
  • 其他框架
  • 其他
  • Java
  • 集合
  • JVM
  • 并发
  • 亿级流量 Java 高并发与网络编程实战
  • Spring Framework
  • Spring Boot
  • Spring Cloud
  • 微服务
  • 任务调度
  • MySQL
  • Redis
  • Elasticsearch
  • HugeGraph
  • ClickHouse
  • Kafka
  • RabbitMQ
  • ActiveMQ
  • Nats
  • Nginx
  • 核心软件
  • 后端
  • 前端
  • 测试
  • Unity
  • 我的菜谱
Series
Java 集合
List 源码
  • ArrayList
  • Vector
  • (Queue)LinkedList
  • Stack
  • (并发)CopyOnWriteArrayList
Queue 源码
  • PriorityQueue
  • (并发)DelayQueue
  • (并发)ArrayBlockingQueue
  • (并发)LinkedBlockingDeque
  • (并发)SynchronousQueue
  • (并发)PriorityBlockingQueue
  • ArrayDeque
  • (并发)LinkedTransferQueue
Set 源码
  • HashSet
  • TreeSet
  • LinkedHashSet
  • (并发)CopyOnWriteArraySet
  • (并发)ConcurrentSkipListSet
Map 源码
  • HashMap
  • HashTable
  • LinkedHashMap
  • (并发)ConcurrentHashMap
  • TreeMap
  • (并发)ConcurrentSkipListMap
  • EnumMap
  • IdentityHashMap
  • WeakHashMap
utilities 源码分析
  • Arrays
  • Collections

(并发)ConcurrentHashMap

felix.shao2025-02-16

(并发)ConcurrentHashMap

附录一、参考文献

  • ConcurrentHashMap 源码
    • jdk7-源码详细分析open in new window
    • jdk8-源码详细分析open in new window
  • 参考
    • size 方法原理分析open in new window
    • size 方法是线程安全的吗open in new window
    • 为什么 ConcurrentHashMap 的 get 操作不需要加锁?open in new window 备注,博客说的不太准确,扩容时ForwardingNode覆盖了Node的find方法,是有用CAS检索元素的
    • jdk8-put 流程图open in new window
    • 为什么舍弃分段锁-比较完善的 concurrenthashmap 面试题open in new window
Last Updated 2/18/2025, 2:43:17 PM

← LinkedHashMapTreeMap →

ON THIS PAGE
  • 附录一、参考文献