Using Java 8 Lambdas and StampedLock To Manage Thread Safety


java Java Language

Room 3

Thursday from 15:40 til 16:30

In this talk, you will learn:

  • What is StampedLock (introduced in Java 8)?
  • How can the StampedLock provide an effective way to manage thread safety with objects that contain several fields (with invariants across them) in many producer/ many consumer systems?
  • What are common StampedLock idioms – and how can Lambdas be applied to make them pluggable?
  • What are some lock-free solutions, based on AtomicReference / Unsafe / VarHandles?
Heinz Kabutz Heinz Kabutz

Dr Heinz Kabutz writes the popular "The Java Specialists' Newsletter" read by tens of thousands of enthusiastic fans in over 138 countries. To sign up, visit