by jhoechtl · 6y ago · 0 comments
What does that mean in practice? Can I perform expensive calculations in parallel exhausting all cores?
package main
import (
"time"
"runtime"
)
func main(){
for i := runtime.NumCPU(); i > 0; i-- {
go func() {
for {}
}()
}
time.Sleep(time.Second)
println("bye")
}