Skip to content

Tag

#goroutines 3 posts

Go · Concepts

Go goroutine leaks and pprofchannels, mutexes, and exit paths

Starting a goroutine is easy. The hard part was deciding who changes the data, who finishes the work, and when a function may return.

Go · Concepts

Go GMP and GOMAXPROCScontainer CPU limits and goroutines

Put go in front of a call and it runs concurrently. So do 100,000 goroutines mean 100,000 threads? Does GOMAXPROCS=1 mean one task at a time?

Go · Concepts

Go context, fully explainedcancellation, time budgets, and four pitfalls

I was already taking ctx as the first argument and passing it along. What I had never checked was whether canceling actually stops the goroutine. After stalling on that question in an interview, I went back to context from the start.

esc

Recent posts

↑↓ move↵ openOpen search page ›