diff --git a/concurrency/cmd/mutex/main.go b/concurrency/cmd/mutex/main.go index 3534b6c..67282a9 100644 --- a/concurrency/cmd/mutex/main.go +++ b/concurrency/cmd/mutex/main.go @@ -27,6 +27,7 @@ func main() { wg.Add(len(adjustments)) for _, adjustment := range adjustments { + // go = placed onto thread, not the stack. go func(adjustment int) { defer wg.Done()