← Back to Phase 2

Week 5: Advanced Coordination, Lifecycle & Lock-Free Primitives

Coordinate thousands of goroutines without turning locks into the bottleneck

Day 21: Coordination Primitives — sync.WaitGroup, sync.Once & sync.Cond

Atomic WaitGroup state, thread-safe lazy init with Once, and Cond signaling without spurious-wakeup traps.

View Day 21 →

Day 22: High-Performance Lock-Free Primitives with sync/atomic

CAS, atomic add/load/store, and the cost of bus locking versus cache coherency.

กำลังจะมา

Day 23: Context Mastery — Lifecycle, Cancellation Tree & Value Propagation

Timeout enforcement and cancellation graphs without abusing context values in a banking pipeline.

กำลังจะมา

Day 24: Concurrency Hazards & Diagnostics (go test -race)

Data races, deadlocks, goroutine leaks, and ThreadSanitizer shadow memory.

กำลังจะมา

Day 25: The Worker Pool Pattern (Bounded Concurrency & Backpressure)

Static allocation and throttling for a high-ingestion worker pool.

กำลังจะมา