Course
Concurrency & Parallelism Concepts
Concurrent programming the way senior engineers survive it — threads, synchronization, atomics, lock-free structures, deadlocks, and the reasoning tools that keep production systems correct.
Reviews
Enrolled members can rate this course.
No reviews yet.
The Concurrent Machine
Threads, interleavings, memory visibility, and the synchronization primitives everything else depends on.
- 01Concurrency Is Not ParallelismWhy concurrency is a structure for dealing with independent work, parallelism is a way to use more cores, and confusing them causes over-threaded systems that are slower and less correct.20mOpen
- 02Threads, Interleavings, and Happens-BeforeThe mental model that explains data races: operations interleave, compilers and CPUs reorder memory access, and only happens-before relationships make visibility predictable.24mOpen
- 03Mutexes, Condition Variables, and Lock GranularityHow to protect invariants with mutexes, avoid the classic condition-variable mistakes, and choose lock granularity without turning the system into a convoy.25mOpen
Correctness Under Contention
Deadlocks, atomics, lock-free structures, and the failure modes that appear only under load.
- 01Deadlocks, Livelocks, and Lock OrderingWhy deadlocks are usually design bugs rather than scheduling accidents, how lock ordering prevents them, and what to do when a production process wedges.24mOpen
- 02Atomics and Memory OrderingWhat atomic operations guarantee, how compare-and-exchange works, and how to choose between relaxed, acquire/release, and sequentially consistent ordering without fooling yourself.26mOpen
- 03Lock-Free Data Structures Without the FolkloreWhat lock-free actually guarantees, why memory reclamation and ABA are the real hard parts, and when a bounded queue or mutex is the senior-engineer answer.27mOpen
Reasoning, Testing, Operating
Invariants, linearizability, stress testing, sanitizers, and production debugging for concurrent systems.
- 01Correctness Reasoning: Invariants and LinearizabilityHow to reason about concurrent code without simulating every schedule: protect invariants, define atomic points, and make linearizability an explicit contract.25mOpen
- 02Testing Concurrent Code Until It Deserves TrustStress tests, deterministic interleaving explorers, race detectors, sanitizers, and invariant assertions — the layered testing strategy that finds timing bugs before customers do.26mOpen
- 03Concurrent Systems in ProductionHow to observe contention, capture useful thread state, debug stalls and starvation, and operate concurrent services without guessing.23mOpen