Speaker details

Heinz Kabutz

JavaSpecialists.eu

Dr Heinz M. Kabutz is the author of The Java Specialists' Newsletter (javaspecialists.eu), in which he explores all sorts of interesting nooks and crannies of the Java ecosystem. He is a Java Champion and a frequent speaker at all the best Java conferences, and some of the worst.

Thread Safety with Phaser, StampedLock and VarHandle

Conference
Java & JVM

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 we will show all three concepts and explain when each should be used.
 

Scheduled on Saturday from 10:00 to 10:50 in Stream 1

Multithreading
Throughput
Java
Concurrency