Re:Node.native - Node.js in C++0x
by trevorstrohman on Wednesday February 08, 2012 @11:52AM
(#3567245)
The Go runtime keeps track of the number of goroutines that are currently executing and ensures that this doesn't go above GOMAXPROCS. As soon as a goroutine enters a system call it is excluded from this count. If there aren't enough threads to run GOMAXPROCS goroutines the runtime may launch a new one.
See pkg/runtime/proc.c (entersyscall, ready, and matchmg).
See pkg/runtime/proc.c (entersyscall, ready, and matchmg).