Curriculum Concurrency Sync primitives exercise 5 · fill-word
Sync primitives
Type the method on sync.WaitGroup that DECREMENTS the
counter — the worker-side counterpart to Add(n) and
Wait().
TypeScript reference
Fill the blanks →
About this theme
sync.Mutex, sync.RWMutex, sync.WaitGroup, sync.Once. The classical concurrency toolbox. Go's culture prefers channels for orchestration and sync for protecting state. Use whichever makes the code clearer; don't pick a side as a religion.