Deep Dive (java.util) - ArrayList
What really happens under the hood
Apr 20, 20269 min read
Search for a command to run...
Series
What really happens under the hood
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
Red-Black Trees in the JDK
Insertion Order Meets Hashing