Concurrency
Jun 05, 20258 min
Thread Safety: Mutexes, Atomics, and Immutability
Four strategies for safe concurrent code, from heaviest to lightest — and the one most teams should default to.
ConcurrencyPatterns
ReadConcurrency primitives, race conditions, deadlocks, and the practical patterns for thread-safe code in real systems — explained without hand-waving and with the failure modes that actually bite.
3 articles · updated regularly
Four strategies for safe concurrent code, from heaviest to lightest — and the one most teams should default to.
Two transactions, two rows, locked in opposite order — and your whole worker pool grinds to a halt. Here's the theory and the fixes.
Why your unit tests passed and your bank balance didn't. A practical intro to races, with Java, Go, and Postgres examples.