4 ms·
The same way the old runtime did: call out on the pthread-provided stack.
by rsc 12y ago
The same way the old runtime did: call out on the pthread-provided stack.
- wahern 12y agoAh, right, Go is M:N threaded, so the scheduler runs multiple goroutines on a shared POSIX stack, mostly unused until calling out to C code. Presumably, then, only Go code can yield.