3 ms·
Being responsive when CPU bound in Golang
- tus88 7y ago> keeping in mind that a worker count greater or equal to GOMAXPROCS, will block the execution queue, possibly interfering with coroutines waiting for I/O. But if you have less workers, then you guarantee there is an open slot to process I/O, at the cost of underutilizing a server’s CPU Not if GOMAXPROCS==NUMCPU+1 ;)