3 ms·
No, GOMAXPROC=1 is not single threaded. GOMAXPROCS=1 uses one kernel thread for running user Go code, but it uses other kernel threads for running system (runti
by 4ad 8y ago
No, GOMAXPROC=1 is not single threaded. GOMAXPROCS=1 uses one kernel thread for running user Go code, but it uses other kernel threads for running system (runtime) Go code, or for executing system calls.
More details: https://news.ycombinator.com/item?id=12460807 https://news.ycombinator.com/item?id=12460807
- amelius 8y agoYes, but if WASM is single-threaded, then how can the GC run in a different thread?
- 4ad 8y agoI don't have a deep understanding on how the WASM Go port works, sorry. I was simply responding to the parent comment about GOMAXPROCS=1. I suspect the WASM port is single threaded and blocks in the GC, but I am not an expert on this.