How to properly handle concurrency and parallelism with Golang

Rene Manqueros
Apr 21 · 11 min read

Programming with threads is always awesome, you can get results faster, work on more things at the same time and keep a server busy as much as possible, unfortunately this creates several problems that are not so obvious when you’re not used to working with threads.

In this short article I’ll guide you on what I consider the most common problems and how I usually work around them.

Across the tutorial we’ll be using the same base exercise which will run the numbers from 0–15 and print them on screen…