Heinz Kabutz, John Green — Thread Safety with Phaser, StampedLock and VarHandle
Every major Java version introduces a new and better way of managing state. Java 7 gave us Phaser as a replacement for CountDownLatch and CyclicBarrier. Hardly any programmers know how it works, even though we are now on Java 11 LTS. Java 8 gave us StampedLock, useful as a lighter read “lock“ when building concurrent classes. Again, not very widely known, but lots of use cases. Java 9/10/11 introduced VarHandle as an escape latch for the Unsafe addicts. In this talk, Heinz and John will show all three concepts and explain when each should be used.
3,477 views
16
2
3 years ago 01:49:46 4.5K
Heinz Kabutz - Prepare for what Looms ahead
3 years ago 00:07:33 1
Simple Web Server, Incremental JVM Improvements & JEP 420 Update - Inside Java Newscast #16
4 years ago 01:14:01 3.5K
Heinz Kabutz, John Green — Thread Safety with Phaser, StampedLock and VarHandle