explain gosched
This commit is contained in:
parent
2c8af9ae1c
commit
05b6731f1f
@ -30,6 +30,7 @@ func main() {
|
||||
// `&` syntax.
|
||||
atomic.AddUint64(&ops, 1)
|
||||
|
||||
// Allow other goroutines to proceed.
|
||||
runtime.Gosched()
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user