rising3월 15일· 2 sources
Golang. M:P:G Model
Golang M:P:G 모델
Why it matters
The M:P:G model is Go's core concurrency mechanism, combining lightweight Goroutines (G) with a fixed set of logical Processors (P) and dynamically managed OS Threads (M) for efficient CPU utilization and massive scalability. Goroutines start with a 2 KB stack, achieve ~200 ns context switches by saving/restoring a small gobuf structure instead of making kernel calls, and transition through states like _Grunnable, _Grunning, _Gwaiting, and _Gsyscall to enable transparent blocking and intelligent load balancing via work stealing.
2
Sources
+0
24h
—
Growth
189d
Active
concurrencydeveloper experiencegolanggoroutinejavascriptm:p:g modelperformancework stealing