From the course: Applied Concurrency in Go
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Concurrency vs. parallelism - Go Tutorial
From the course: Applied Concurrency in Go
Concurrency vs. parallelism
- [Instructor] Let's begin with a short discussion of concurrency and parallelism to get some clear mental definitions of what these two important concepts are. Consider your computer while you are watching this video. The browser is connected to the internet and displaying the video. Your code editor is running, ready for us to code, and you might also be taking notes at the same time. While we might not know how it does it, it's safe to say that we are aware that our computers are doing multiple tasks seemingly at the same time. What kind of magic is this? Well, I'm sorry to tell you that your computer is a bit of a Muggle, and there is no magic involved. Your computer achieves this with a combination of parallel and concurrent events or tasks. These two terms are central to this course and are sometimes used interchangeably, leading to confusion. Let's begin with parallelism. Parallel events or tasks execute…