Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

The Scheduler Saga

Gopher Academy via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the inner workings of the Go scheduler in this 31-minute conference talk from GopherCon 2018. Delve into the M:N multiplexing of goroutines on system threads, examining mechanisms for scheduling, unscheduling, and rebalancing goroutines. Learn how the scheduler supports the netpoller and memory management systems for goroutine stack resizing and heap garbage collection. Evaluate the effectiveness and performance of the scheduler as speaker Kavya Joshi guides you through topics such as N1 scheduling, thread reuse, run queues, concurrency, work stealing, and cooperative preemption. Gain insights into the behind-the-scenes machinery that powers Go programs, efficiently runs goroutines, and coordinates network I/O and memory management.

Syllabus

Intro
What is the scheduler
Why do we need a scheduler
When does it do all the scheduling
Goals
Question
N1 Scheduling
Reuse Threads
Run Queue
Concurrency
Limit Threads
Should we ship it
Distributed run queues
Work stealing
Handoff
Ghost Scheduler
Cooperative preemption
Conclusion

Taught by

Gopher Academy

Reviews

Start your review of The Scheduler Saga

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.