在任何給定時(shí)間,Go 似乎總是至少有 4 個(gè) goroutine 在運(yùn)行。其他三個(gè)不是主要的 goroutine 是什么?http://play.golang.org/p/MQBiLmHXBKpackage mainimport ( "fmt" "runtime")func main() { fmt.Println(runtime.NumGoroutine()) //4}
- 1 回答
- 0 關(guān)注
- 172 瀏覽
添加回答
舉報(bào)
0/150
提交
取消