Tag

CLH Lock

0 views collected around this technical thread.

Qunar Tech Salon
Qunar Tech Salon
Jan 28, 2021 · Fundamentals

Understanding CLH Locks and Their Enhancement in Java's AbstractQueuedSynchronizer (AQS)

This article explains the fundamentals of spin locks, introduces the CLH lock as an improved spin‑lock variant, analyzes its Java implementation details, and describes how Java's AbstractQueuedSynchronizer refactors CLH locks to provide fair, low‑overhead synchronization for concurrent applications.

AQSCLH LockJava
0 likes · 12 min read
Understanding CLH Locks and Their Enhancement in Java's AbstractQueuedSynchronizer (AQS)
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Sep 23, 2020 · Fundamentals

Understanding and Implementing the CLH Lock in Java (JDK 1.8 Source Code Analysis)

This article explains the concepts of spin locks and mutex locks, introduces the CLH lock as a fair spin lock used in Java's AbstractQueuedSynchronizer, and provides a detailed walkthrough of its Java implementation, initialization, lock and unlock processes, along with code examples and visual illustrations.

AQSCLH LockJava
0 likes · 19 min read
Understanding and Implementing the CLH Lock in Java (JDK 1.8 Source Code Analysis)