Tagged articles

CLH queue

4 articles · Page 1 of 1
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 queueCondition Variable
0 likes · 37 min read
How Does AQS Queue Threads? CLH Queue, State & Condition Variables Deep Dive