3 ms·
Anyone know if goroutines are still implemented as native POSIX threads in gccgo?
by russell_h 16y ago
Anyone know if goroutines are still implemented as native POSIX threads in gccgo?
- edsrzf 16y agoYes, they are.
- obiterdictum 16y agoYes and no. They do use a thread pool of OS threads, but they don't map 1-to-1 to goroutines.
- edsrzf 16y agoThat's true for the gc compilers, but not for gccgo (yet, anyway). Each go statement in gccgo creates a pthread.