Explain Go's M:N scheduler (GMP model) and how it coordinates concurrency.
expand_more
G) onto Logical Processors (P), which map to OS Threads (M). The scheduler uses a work-stealing algorithm: if a thread M runs out of goroutines, it steals work from other threads' run queues, maximizing CPU cores.