Go協程與協程池

1. Golang協程 golang和其它語言最大區別莫過於goroutine,也就是go的協程,example以下: package main import "fmt" import "time" func go_worker(name string) { for i:=0; i<10; i++ { fmt.Println("this is go worker :" , name)
相關文章
相關標籤/搜索