[go-nuts] Re: gcwaiting=1 will causes block all the goroutines?

2019-04-11 Thread jake6502
On Wednesday, April 10, 2019 at 10:44:38 PM UTC-4, mount...@gmail.com wrote: > > Thank you very much for your meticulous reply. I basically understand the > scheduling mechanism, but I still don’t understand the third paragraph. > > It is "It is also important to note that the behavior of

[go-nuts] Re: gcwaiting=1 will causes block all the goroutines?

2019-04-10 Thread mountainfpf
Thank you very much for your meticulous reply. I basically understand the scheduling mechanism, but I still don’t understand the third paragraph. It is "It is also important to note that the behavior of runtime.GC() is not the exactly same as the normal backgound GC that gets run by the

[go-nuts] Re: gcwaiting=1 will causes block all the goroutines?

2019-04-10 Thread jake6502
As Ian said, your question is not completely clear. I think you are Saying that "I got scheduled!" prints 3 times, then the program appears to "hangs" on the runtime.GC() call. To start with, it is usually helpful to create a *minimal *program when dealing with questions like this. Your