16.ConcurrentHashMap
Java · 2 notes
- 6.16 ConcurrentHashMap in JDK 1.7historical
JDK 1.7 ConcurrentHashMap uses segmented locking with arrays and linked lists for concurrent updates. These notes trace the implementation through Segment and HashEntry.
- 6.29 ConcurrentHashMap in JDK 1.8historical
JDK 1.8 ConcurrentHashMap combines synchronized, CAS, arrays, linked lists, and red-black trees for thread-safe access. These notes trace execution through methods such as putVal.