Deep Dive (java.util.concurrent) - BlockingQueues
Producer-Consumer Primitives
May 31, 20257 min read1
Search for a command to run...
Articles tagged with #java
Producer-Consumer Primitives
"No locks at all — just atomic compare-and-swap, all the way down." ConcurrentLinkedQueue and ConcurrentLinkedDeque are lock-free concurrent collections built entirely on CAS (Compare-And-Swap) opera
Lock Striping and Concurrency
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...
Snapshot Iteration
Red-Black Trees in the JDK