Local queue
A local queue is a scheduler queue associated with a particular worker or processor context for holding runnable tasks.
Learn Concurrent Programming with Go
A local run queue is a scheduler queue associated with one kernel-level thread and containing goroutines assigned to that thread.
- How it is used
- Schedules goroutines across kernel-level threads while preventing blocking calls from stopping other local work.
- How deep it goes
- Explains queue assignment, global fallback, blocking migration, and work stealing without detailing the complete balancing algorithm.
- Examples
- Uses CPU-count inspection, sample GOMAXPROCS output, and a figure showing queue migration after blocking I/O.
- What you can do after
- Understand how Go distributes goroutines and maintains runnable work when threads block or queues become imbalanced.
Read how Learn Concurrent Programming with Go explains local queue →
100 Go Mistakes and How to Avoid Them
A local queue is a scheduler queue associated with one processor context for holding runnable goroutines.
- How it is used
- Explains how the Go scheduler stores and finds runnable goroutines across processor contexts.
- How deep it goes
- Traces queue selection and work stealing but stops short of implementation-level queue mechanics.
- Examples
- Uses a four-core scheduling diagram and runtime scheduling pseudocode to illustrate queue selection.
- What you can do after
- Evaluate scheduler states by tracing runnable goroutines through local queues, the global queue, and work stealing.
Read how 100 Go Mistakes and How to Avoid Them explains local queue →
Related concepts
- work stealingused by · Work stealing is a dynamic scheduling strategy that redistributes pending tasks to idle workers to balance workloads and improve utilization.
- global queuecontrasts with · A global queue is a scheduler queue shared across processor contexts for holding runnable work not yet assigned to an execution context.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

