package main
import (
"net/http"
"sync"
)
var wg sync.WaitGroup
func cc(url string) {
for true {
http.Get(url)
}
}
func main() {
wg.Add(4)
for i := 0; i < 10000; i++ {
go cc("https://www.baidu.com/")
}
wg.Wait()
}
02-25
2309
07-30
8416
01-10
3000
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交