GMP — Goroutine, Machine, Processor. Go's scheduler model.
G (Goroutine):
M (Machine):
**P (Processor):
1// Number of processors2fmt.Println(runtime.GOMAXPROCS(0)) // Default: CPU cores
How it works:
Benefits: