March 2020
Intermediate to advanced
406 pages
8h 39m
English
The M struct is labeled M for machine. The M struct is a representation of an OS thread. It contains a pointer that points to the runnable goroutine global queue (defined by the P struct). M retrieves its work from the P struct. M contains the free and waiting goroutines that are ready to be executed. Some notable M struct parameters are the following:
Read now
Unlock full access