The Mutex Club2 Min Read dgtalbugonMarch 13, 2025 The Mutex Club: Fine-Grained Locking vs Coarse-Grained Locking The Mutex Club: Lock and Load: Coarse vs. Fine-Grained Locking for the Concurrency-Curious ## Key Insights ### Coarse-Grained Locking Imagine… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 12, 2025 The O(n) Club: Odd Even Linked List: When Indices, Not Values, Go Rogue The O(n) Club: Odd Even Linked List — When Indices, Not Values, Go Rogue ⚡ TL;DR Don’t confuse “odd” with funky node values: This is about… Discover More
The O(n) Club2 Min Read dgtalbugonMarch 12, 2025 The O(n) Club: K Closest Points to Origin: Or, How to Avoid a Heap of Regret The O(n) Club: K Closest Points to Origin—Or, How to Avoid a Heap of Regret ⚡ TL;DR Don’t overthink it: Want the k closest 2D points to (0,… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 12, 2025 The Mutex Club: Mastering Atomic Variables and CAS Key Insights Indivisible Moves in a World Full of Thread Races What do Java’s AtomicInteger, modern databases, and AI workflow tools like n8n… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 12, 2025 The Mutex Club: Choosing the Right Thread-safe Collection Concurrency isn’t a wild west—it’s herding caffeinated kittens across multiple threads. ## Key Insights # Thread-safe Collections: Built-in… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 12, 2025 The Mutex Club: Spinlocks and Busy Waiting: The Hidden Cost Key Insights # Busy Waiting 101 Think of a thread as a chef constantly checking the oven window—without ever taking a coffee break. That’s… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 11, 2025 The O(n) Club: N-Queens Without The Emotional Damage The O(n) Club: N-Queens Without The Emotional Damage ⚡ TL;DR Need to park N queens on an N×N chessboard with zero drama? They can’t… Discover More
The O(n) Club3 Min Read dgtalbugonMarch 11, 2025 The O(n) Club: Palindrome Number—Mirror, Mirror on My Integer (No Strings, No Magic) The O(n) Club: Palindrome Number—Mirror, Mirror on My Integer (No Strings, No Magic) ⚡ TL;DR You want to check if a number looks the same… Discover More
The Mutex Club2 Min Read dgtalbugonMarch 11, 2025 The Mutex Club: Monitors, Locks, and Conditions Explained Hook: When Threads Turn Into Divas Picture this—your codebase is a five-star kitchen, and threads are over-caffeinated sous-chefs all vying… Discover More
The Mutex Club1 Min Read dgtalbugonMarch 11, 2025 The Mutex Club: StampedLock: A Modern Locking Mechanism StampedLock: Read Fast, Validate Faster # The Big Idea StampedLock is Java 8’s answer to the read-heavy concurrency problem: grab a numeric… Discover More