Go/併發/goroutine

package main import ( "fmt" "runtime" ) //主協程結束,其它協程也會被終止 func main(){ runtime.GOMAXPROCS(4) //設置運行程序的最大cpu核數 go func(){ for i := 0; i < 3; i++{ fmt.Println("c++")
相關文章
相關標籤/搜索