← Courses⧉
C2 · C++ Foundations
C++ Concurrency, Atomics & Lock-Free Systems
Reason about thread safety, the memory model and concurrent progress.
₹799Planned introductory price · Not on sale yet
Start lesson 01 →01Threads, Lifetimes & Concurrency Foundations6 lessons
- 01Concurrency vs Parallelism: Latency, Throughput & ProgressOutline
- 02std::thread Lifecycle: Join, Detach and RAII2 runnable
- 03Passing Arguments Safely into Threads1 runnable
- 04Transferring Thread Ownership1 runnable
- 05Hardware Concurrency, Thread IDs and Topology2 runnable
- 06thread_local Storage and Initialization1 runnable
02Shared Data, Mutexes & Deadlock Avoidance6 lessons
- 07Race Conditions vs C++ Data RacesOutline
- 08Mutexes, std::lock_guard and std::unique_lockOutline
- 09Deadlock Causes, Lock Ordering and AvoidanceOutline
- 10Protecting Shared State and Escaping References1 runnable
- 11std::shared_mutex and Reader–Writer Locking1 runnable
- 12Recursive Mutexes and Alternative Synchronization1 runnable
03Condition Variables, Futures & Coordination6 lessons
- 13Condition Variables, Predicates and Spurious Wakeups1 runnable
- 14Implementing a Blocking Producer–Consumer QueueOutline
- 15std::promise, std::future and std::packaged_task1 runnable
- 16std::async: Launch Policies and Deferred ExecutionOutline
- 17Waiting with Deadlines, Timeouts and CancellationOutline
- 18Callbacks, Handoff and Continuation PatternsOutline
04Memory Ordering, Atomics & Progress Guarantees12 lessons
- 19Happens-Before, Modification Order and Data-Race Freedom1 runnable
- 20std::atomic Types, Operations and Initialization1 runnable
- 21Relaxed, Acquire, Release and Sequential Consistency1 runnable
- 22Release Sequences, Fences and Synchronizes-With1 runnable
- 23Compare-and-Exchange: Weak, Strong and Failure OrderingOutline
- 24Atomic Costs, Coherence Traffic and Lock-FreedomOutline
- 25Formal Memory Ordering: Acquire/Release/Acq_Rel/Seq_CstOutline
- 26Publication, Transitive Happens-Before and FencesOutline
- 27CAS Retry Loops and Failure OrderingOutline
- 28Obstruction-Free, Lock-Free and Wait-Free ProgressOutline
- 29Linearizability, Linearization Points and HistoriesOutline
- 30False Sharing, Cache-Line Padding and BackoffOutline
05Thread-Safe Containers & Lock Granularity4 lessons
06Task Scheduling, Cancellation & Parallel Performance6 lessons
- 35Task Decomposition and Dependency Graphs1 runnable
- 36False Sharing, Cache Contention and ScalabilityOutline
- 37Thread Pools and Work-Stealing Schedulers1 runnable
- 38Cooperative Cancellation and std::stop_tokenOutline
- 39Parallel Algorithms and Execution PoliciesOutline
- 40std::jthread, Latches, Barriers and SemaphoresOutline
07Lock-Free Stacks, Ring Buffers & Queues8 lessons
- 41SPSC Fixed-Capacity Ring Buffer: Invariants and Implementation1 runnable
- 42SPSC Queue Padding and Benchmark DesignOutline
- 43MPSC Bounded Queue: Contention and PublicationOutline
- 44MPMC Bounded Queue with Sequence CountersOutline
- 45Lock-Free Stack with Pointer Compare-and-SwapOutline
- 46Memory-Ordering Bugs in Concurrent QueuesOutline
- 47Blocking vs Spin-Wait vs Adaptive WaitingOutline
- 48Batching, Backpressure and Bounded Queues1 runnable
08ABA, Reclamation & Advanced Lock-Free Design11 lessons
- 49The ABA Problem and Tagged PointersOutline
- 50Hazard Pointers: Memory Reclamation and SafetyOutline
- 51Epoch-Based Reclamation and Quiescent StatesOutline
- 52Read-Copy-Update and Read-Mostly DataOutline
- 53Seqlocks, Versioned Reads and Consistent Snapshots1 runnable
- 54Double Buffering and Snapshot PublicationOutline
- 55Michael–Scott Queue: Algorithm and Proof ObligationsOutline
- 56Lock-Free Hash Tables and ResizingOutline
- 57Litmus Tests and Concurrent Model CheckingOutline
- 58ThreadSanitizer Limitations for Atomic Correctness1 runnable
- 59Production Lock-Free Code ReviewOutline
09Testing, Debugging & Proving Concurrent Correctness5 lessons
Course material is being developed; lesson outlines do not indicate published video availability.