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)
}
更多评论