Tag

AbstractQueuedSynchronizer

0 views collected around this technical thread.

Sanyou's Java Diary
Sanyou's Java Diary
Feb 4, 2022 · Backend Development

Unlocking Java’s AbstractQueuedSynchronizer: How AQS Powers Locks and Synchronizers

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
Unlocking Java’s AbstractQueuedSynchronizer: How AQS Powers Locks and Synchronizers
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 19, 2021 · Backend Development

How to Build a Custom Java Lock with AbstractQueuedSynchronizer

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.

AbstractQueuedSynchronizerConcurrencyJava
0 likes · 5 min read
How to Build a Custom Java Lock with AbstractQueuedSynchronizer
Architecture Digest
Architecture Digest
Oct 27, 2020 · Fundamentals

Understanding Java AbstractQueuedSynchronizer (AQS) and Implementing a Custom Lock

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
Understanding Java AbstractQueuedSynchronizer (AQS) and Implementing a Custom Lock
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jul 24, 2020 · Fundamentals

Understanding Java's AbstractQueuedSynchronizer (AQS): Concepts, Internal Implementation, and Resource Acquisition/Release

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
Understanding Java's AbstractQueuedSynchronizer (AQS): Concepts, Internal Implementation, and Resource Acquisition/Release