Skip to content
Tagged articles

CLH Queue

5 articles · Page 1 of 1
Lobster Programming
Lobster Programming
Oct 15, 2026 · Fundamentals

AQS Unveiled: State, CLH Queue, and Template Method in Java Concurrency

This article explains Java's AbstractQueuedSynchronizer (AQS) core model using a service counter analogy, detailing how the state variable and CLH queue manage thread synchronization, the template method pattern separating queuing logic from acquisition rules, and how LockSupport.park/unpark enable efficient thread blocking and waking, illustrated with ReentrantLock and CountDownLatch examples.

AQSAbstractQueuedSynchronizerCLH Queue
0 likes · 7 min read
AQS Unveiled: State, CLH Queue, and Template Method in Java Concurrency
Java Tech Workshop
Java Tech Workshop
Sep 8, 2026 · Backend Development

ReentrantLock vs synchronized: Source-Code Comparison & Selection Guide

This article provides a comprehensive source-code level comparison of Java's ReentrantLock and synchronized, covering their underlying implementations (JVM monitor vs AQS/CLH), lock upgrade mechanisms, fairness, interruptibility, timeout support, condition variables, and performance characteristics across JDK versions to guide practical selection.

AQSCLH QueueJVM Internals
0 likes · 21 min read
ReentrantLock vs synchronized: Source-Code Comparison & Selection Guide
Java Tech Workshop
Java Tech Workshop
Sep 6, 2026 · Fundamentals

How Does AQS Queue Threads? CLH Queue, State & Condition Variables Deep Dive

This article provides a comprehensive source-code-level analysis of Java's AbstractQueuedSynchronizer (AQS), detailing its three core components—state, CLH wait queue, and ConditionObject—and walking through exclusive lock acquisition/release, fair vs non-fair locking, shared lock propagation, and condition variable await/signal mechanics with code examples.

AQSCLH QueueJava Concurrency
0 likes · 37 min read
How Does AQS Queue Threads? CLH Queue, State & Condition Variables Deep Dive