Nonstandard Memory Model Extensions in Practice
summary
Covers practical use of Java memory-model semantics introduced in a prior JPoint 2023 talk, showing how those nonstandard semantics are applied in real multithreaded code. Examines concrete examples including the Disruptor library and demonstrates how to implement an even higher-performance lock-free queue. Targets developers interested in concurrency, memory models, and lock-free libraries.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:14About the speaker
- 4:17Java memory model basics
- 8:17Fixing singleton with relaxed semantics
- 13:14Building queue from scratch
- 20:42Optimizing queue with acquire-release
- 23:11CPU cache impact on performance
- 26:21Reducing cache line sharing
- 30:38Disruptor library overview
- 36:14Introducing seqlock concept
- 41:48Explicit barriers in seqlock
- 44:17Clock queue implementation
- 47:02Real-world concurrency pitfalls
- 49:53Practical applications summary
- 50:37Q&A
