โ๏ธsync/atomic WorkshopWORKSHOP
1
2
3
4
Step 1
Declare an `atomic.Int64` counter. Start 5 goroutines, each calling `counter.Add(1)` 1000 times. Use a `sync.WaitGroup` to wait for all goroutines, then print `counter.Load()`. The result should be 5000.
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)