1 min readApr 23, 2020
Ideally, it should, but Goroutines do not operate this way. There should be a probable cause for the Go scheduler to schedule another goroutine such as a time.Sleep
call, blocking channel operation, etc.
It’s hard to put into words how the scheduler operates since there are many rules involved in the scheduling process. Hence it becomes the developer’s responsibility to make sure a Goroutine is scheduled properly.