Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Using Java 8 Lambdas and StampedLock to Manage Thread Safety

Devoxx via YouTube

Overview

Explore thread safety management in Java 8 using Lambdas and StampedLock in this 51-minute Devoxx conference talk. Dive into the intricacies of StampedLock, its effective application in many producer/consumer systems, and common idioms enhanced by Lambda expressions. Learn about lock-free solutions utilizing AtomicReference, Unsafe, and VarHandles. Discover optimistic reads, the Cretan crocodile problem, atomic references, and various synchronization techniques. Gain insights into value holder objects, compare volatile operations, and understand the conditional change idiom. Presented by Dr. Heinz Kabutz, author of "The Java Specialists' Newsletter," this talk offers advanced Java concurrency concepts for enthusiasts and professionals alike.

Syllabus

Introduction
Optimistic reads
Cretan crocodile
Moving positions
The move
The algorithm
Value holder objects
Atomic references
Atomic reference filled up
Unsafe
Unset
Creating VAR Handles
Registers
Compare Volatile
Distance from Origin
In Invalid State
Conditional Change
WriteLock
Deluxe
Why do you synchronize
Auto closeable
Public synchronized void
Checked exceptions
Conditional Change idiom

Taught by

Devoxx

Reviews

Start your review of Using Java 8 Lambdas and StampedLock to Manage Thread Safety

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.