Compare-And-Swap (CAS) in Java with `VarHandle`
Concurrency is hard, but Java gives us powerful tools to make it manageable. One such tool is the Compare-And-Swap (CAS) operation, which lies at the heart of lock-free programming. In this blog post, we’ll explore how CAS works, why it needs to be u...
sachinhandiekar.com3 min read