>if not found, poll network.
Does this mean network IO is only performed when there are no idling goroutines? That can't be right... what am I not understanding, here?
Does this mean network IO is only performed when there are no idling goroutines? That can't be right... what am I not understanding, here?
var i int
for { i++ }
the former goroutine would never actually perform the IO?(I can't fight the feeling that I'm misunderstanding this on some level...)
package main
import (
"fmt"
"time"
)
func main() {
go func() {
time.Sleep(100 * time.Millisecond)
fmt.Println("hi")
}()
var i int
for {
i++
}
}
$ GOMAXPROCS=1 go run test.go # never prints anythingI'm unsure about how that plays with inlining, though.
I think it says that network IO is only performed where there are no runnable (not idling) goroutines.
Yes, that's what I meant. Got mixed up :)