3 ms·
You can read the well commented scheduler code here: http://golang.org/src/pkg/runtime/proc.c http://golang.org/src/pkg/runtime/proc.c A fast read suggests bot
by icebraining 14y ago
You can read the well commented scheduler code here: http://golang.org/src/pkg/runtime/proc.c http://golang.org/src/pkg/runtime/proc.c
A fast read suggests both syscalls and call to C code (cgocall) are used to switch goroutines.