Tagged articles
AbstractQueuedSynchronizer
11 articles · Page 1 of 1
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

The article explains how Java's AbstractQueuedSynchronizer (AQS) serves as the foundational framework for most JUC utilities by encapsulating state, a FIFO wait queue, and template methods, and demonstrates its design through detailed source analysis of ReentrantLock, Semaphore, CountDownLatch, and a custom latch.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 17 min read

This article provides a thorough technical walkthrough of Java's AbstractQueuedSynchronizer, covering its core state and CLH queue structures, exclusive and shared lock acquisition/release processes, Condition implementation, and interview-ready explanations of its underlying mechanisms.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 8 min read

This article walks through the fundamentals of Java's AbstractQueuedSynchronizer, covering lock‑queue relationships, CLH lock internals, dummy head nodes, state management, and step‑by‑step implementations of acquire, addWaiter, acquireQueued, shouldParkAfterFailedAcquire, and release methods, complete with runnable example code.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 29 min read

This article dissects Java’s ReentrantLock implementation, detailing its delegation to AbstractQueuedSynchronizer, the lock acquisition process, the role of non‑fair and fair sync subclasses, the internal CLH queue mechanics, and how unlocking is handled, while comparing Lock with synchronized.
AbstractQueuedSynchronizerConcurrencyJava
0 likes · 14 min read

This article explains the core concepts of Java's AbstractQueuedSynchronizer, detailing its internal FIFO queue, state management, exclusive and shared modes, and provides complete code examples for custom lock implementation and usage.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 7 min read

This article explains the core concepts and implementation details of Java's AbstractQueuedSynchronizer (AQS), covering its three main responsibilities, lock acquisition and release mechanisms, the internal Node structure, and both exclusive and shared lock algorithms with illustrative pseudocode.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 16 min read

This article explains how to extend AbstractQueuedSynchronizer to create a custom lock in Java, detailing the core AQS methods, the implementation of a PLock class, and the handling of exclusive and shared acquisition and release logic.
AbstractQueuedSynchronizerJavacustom lock
0 likes · 5 min read

This article explains the internal state management, waiting queue, and node states of Java's AbstractQueuedSynchronizer (AQS), demonstrates how to create a custom reentrant lock by extending AQS, and walks through the lock acquisition and release process with detailed code examples.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 17 min read

This article explains the core concepts of Java's AbstractQueuedSynchronizer (AQS), its internal FIFO double‑linked list structure, key code snippets, how threads acquire and release resources in exclusive and shared modes, and provides practical insights for mastering Java concurrency.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 12 min read

This article explains the internal design of Java's AbstractQueuedSynchronizer (AQS), covering its state management, FIFO sync queue, node structure, exclusive lock acquisition and release processes, and key helper methods, with detailed diagrams from JDK 8 implementation.
AQSAbstractQueuedSynchronizerConcurrency
0 likes · 11 min read
