Heinz Kabutz
Heinz Kabutz Twitter

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 http://www.javaspecialists.eu

Blog: http://www.javaspecialists.eu

java Java Language

Using Java 8 Lambdas and StampedLock To Manage Thread Safety


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?