package main
import (
"time"
)
func main() {
channel()
}
func channel() {
i := 0
a := 8
for j := 0; j < a; j++ {
go func() {
//fmt.Println(1)
for {
i++
}
}()
}
time.Sleep(time.Millisecond)
}
有疑问加站长微信联系(非本文作者)