A worker pool bounds parallelism by reading jobs from one channel and writing results to another. Pipelines chain stages, each a goroutine transforming a channel. Always define ownership and closing rules so goroutines exit and do not leak.
← Go theorytheory 0/50 · 0%
Concurrency · medium
26. Concurrency Patterns
Worker pools, fan-in and pipelines.
Check your understanding
1. A worker pool primarily controls…
2. A goroutine leak happens when…