Tagged articles

OptimisticRead

2 articles · Page 1 of 1
Programmer1970
Programmer1970
Jan 6, 2025 · Backend Development

Understanding StampedLock in Java 8: Principles and Practical Use

This article explains Java 8's StampedLock—its optimistic and pessimistic read/write modes, internal state handling, source‑code walkthrough, typical usage scenarios, and a performance comparison with ReentrantLock and ReentrantReadWriteLock—providing concrete code examples and detailed analysis for developers.

JUCJavaJava8
0 likes · 12 min read
Understanding StampedLock in Java 8: Principles and Practical Use
Programmer DD
Programmer DD
Jul 29, 2020 · Backend Development

Unlocking StampedLock: How Java’s New Lock Boosts Concurrency

This article explains the design, features, usage patterns, and internal implementation of Java's StampedLock, comparing it with ReentrantReadWriteLock, showing code examples, optimistic reading techniques, and the lock's queue mechanics for improved multi‑threaded performance.

LockOptimisticReadStampedLock
0 likes · 26 min read
Unlocking StampedLock: How Java’s New Lock Boosts Concurrency