Go Goroutines: A Deep Dive
Introduction Recently, I’ve noticed a slight tremor among colleagues preparing for Go interviews - everyone understands that questions about Go’s most hyped feature are inevitable. Sure, you’ve all read those articles - with pictures and letters M, G, P in circles, you know about GOMAXPROCS (though probably not what you should), but when the interviewer dives deeper into details, like asking - why do we need these goroutines and why weren’t OS threads enough? - that’s when the incoherent mumbling begins. ...