March 2020
Intermediate to advanced
406 pages
8h 39m
English
The Go scheduler has three key structures that handle the workload of goroutines: the M struct, the P struct, and the G struct. These three structs work together in order to process goroutines in a performant fashion. Let's take a look at each of these in more depth. If you'd like to take a look at the source code for these, it's available at https://github.com/golang/go/blob/master/src/runtime/runtime2.go/.
Read now
Unlock full access