课程: Applied Concurrency in Go

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Concurrency vs. parallelism

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…

内容