Goroutine Scheduling

2025-01-154 minTech Related
#golang

Go runtime schedules goroutines automatically.

You never manage threads manually.

Example:

go task()
go task()
go task()

Go decides which CPU core runs each goroutine.