Documentation
¶
Overview ¶
schedissue illustrates an apparent defect in Go's runtime where on a multi-core machine, as little as one goroutine doing CPU intensive work can block other goroutines from executing.
It first starts a configurable number of goroutines which are making periodic HTTP requests, then sleeps for a 4 seconds in order to allow a few requests to execute. It then launches a configurable number of 'worker' goroutines which are generating and XORing random numbers together in a tight loop.
Click to show internal directories.
Click to hide internal directories.