[go-nuts] Re: After one goroutine completed, does the thread its binded will be destroyed?

2018-04-10 Thread Pelon Lee
Thanks you! I'll see that code. 在 2018年4月10日星期二 UTC+8上午7:32:51,Keith Randall写道: > > Tamás is right. In the case you show, M1 will pick up G2 and work on it. > In general, the M (OS thread) finds another goroutine to run, and if it > can't find one it parks itself until more goroutines show

[go-nuts] After one goroutine completed, does the thread its binded will be destroyed?

2018-04-09 Thread Pelon Lee
Such as above image. After G1 completed, does the M1 will bind with another goroutine or destroyed? If M1 isn't destroyed, what will it do? If I don't describe