whatcanGOwrong

This commit is contained in:
2024-09-19 21:38:24 -04:00
commit d0ae4d841d
17908 changed files with 4096831 additions and 0 deletions
@@ -0,0 +1,21 @@
package main
import (
"fmt"
"sync"
)
func anotherthread(wg *sync.WaitGroup) {
i := 1 * 5 / 39020
fmt.Println(i)
wg.Done()
}
func main() {
var wg sync.WaitGroup
for i := 0; i < 10; i++ {
wg.Add(1)
go anotherthread(&wg)
}
wg.Wait()
}