Overview
Explore the inner workings of the Go scheduler in this 47-minute conference talk from GopherCon 2021. Dive deep into how Go scales millions of Goroutines across system threads, ensuring fairness and efficiency. Uncover the mystery behind the hardcoded value of 61 in the scheduler and learn to leverage schedtrace for valuable insights. Gain practical knowledge on using runtime APIs to influence scheduler behavior, understand concepts like global run queues, distributed run queues, and fairness in scheduling. Examine real-world applications through demos and case studies, including the netpolar and Lock OS Thread debugging. Perfect for Go developers seeking to optimize their understanding and usage of Go's concurrent programming model.
Syllabus
Introduction
Disclaimer
User Space Scheduling
Global Run Queue
Fairness
Distributed run queues
Go max prox
Fairness in scheduling
The netpolar
Demo
Prime
Prime Graph
Handoff
Scheduling
Runtime APIs
Lock OS Thread
Lock OS Thread Debugging
Lock OS Case Study
Conclusion
Taught by
Gopher Academy