Concurrency is a property of a system, whether a program, a computer, or a network of computers. Concurrency refers to a way of performing computations in such a way that a system is “dealing with a lot of things at once” as Rob Pike, the creator of the Go programming language, once said. And concurrent programming is a method of structuring a system in a way that multiple “tasks” run in an overlapping way. The above definition is a little vague. You probably have questions such as: • What does “at once” mean? • What does “performing computations” mean? • What if there are dependencies between computations? • What are “tasks”? All of this and more will be discussed in this book. Before we get into all of that, let’s begin with some of the fundamentals. First off, why should you care about concurrency?
نظرات کاربران