Tagged articles

LockFree

2 articles · Page 1 of 1
Dabaoshi
Dabaoshi
Aug 18, 2026 · Backend Development

ConcurrentHashMap Deep Dive: Understanding Java’s Core Concurrent Container

This article explains why HashMap isn’t thread‑safe, how Hashtable’s single lock hurts performance, and walks through the evolution from JDK 1.7 segment locks to JDK 1.8’s CAS‑plus‑synchronized bucket locking, including lock‑free size counting and a comparison with CopyOnWriteArrayList for read‑heavy scenarios.

ConcurrencyConcurrentHashMapCopyOnWriteArrayList
0 likes · 17 min read
ConcurrentHashMap Deep Dive: Understanding Java’s Core Concurrent Container
Programmer DD
Programmer DD
Jul 25, 2018 · Fundamentals

How SkipList Powers Java’s ConcurrentSkipListMap – A Deep Dive

This article explains the SkipList data structure, its characteristics and operations, and shows how Java’s ConcurrentSkipListMap implements a thread‑safe map using SkipList nodes, index layers, random level generation, and lock‑free algorithms for put, get, remove and size operations.

ConcurrentProgrammingConcurrentSkipListMapDataStructure
0 likes · 21 min read
How SkipList Powers Java’s ConcurrentSkipListMap – A Deep Dive