#tech/go 3
Notes filed under this topic. All tags
- Budding 10 months ago
The Go scheduler: G, M, and P
How Go runs hundreds of thousands of goroutines on a handful of OS threads - the G-M-P model, local run queues, work-stealing, and the syscall handoff.
- Budding 10 months ago
Threads vs coroutines: who decides to yield
Both let a program do many things at once. The real difference is who is in control - the kernel that preempts a thread, or the coroutine that yields itself - and what each "thing" costs.
- Budding 12 months ago
CPU-bound vs IO-bound
Whether your program spends its time computing or waiting decides your concurrency model - and quietly picks the language that will feel effortless.