Thank you, brother, the following jake brothers helped me to bring out all
the confusion.
在 2019年4月10日星期三 UTC+8下午9:31:41,Ian Lance Taylor写道:
>
> On Wed, Apr 10, 2019 at 4:52 AM > wrote:
> >
> > My macos has 4 cores, but i start 3 goroutines, 2 sub goroutines, 1
> main goroutine.
> > After
Hi,
My macos has 4 cores, but i start 3 goroutines, 2 sub goroutines, 1 main
goroutine.
After main goroutine exec 3 times output, triggering gc causes
gcwaiting=1.
Finally all goroutine blocking
package main
import (
"fmt"
"log"
"net/http"
_ "net/http/pprof"
"runtime"
// "runtime"
"time"