There's no -T in Ubuntu 16.04, am I wrong? On Monday, September 17, 2018 at 11:54:05 AM UTC+8, Patrick Smith wrote: > > Probably those are threads, not processes. Try 'pstree -T'. Also, I > believe the variable name is GOMAXPROCS, with an S at the end. > > On Sun, Sep 16, 2018 at 8:35 PM <the.warl...@gmail.com <javascript:>> > wrote: > >> package main >> import ( >> "log" >> "time") >> >> func main () { >> log.Println("sleep 30s") >> time.Sleep(30 * time.Second)} >> >> When I start it with go run main.go, it shows multiple child process in >> pstree: >> >> Anyone know what's happening? Limiting GOMAXPROC does not help here. >> >> I'm using go version go1.11 linux/amd64 >> >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.