Concurrent versus parallel
These are two key constructs are often confused by developers, and warrant clear demystification. The authors strongly feel that a thorough understanding of this distinction holds the key to effective software design for achieving more by effective utilization of the available infrastructure (processors, cores, hardware, and software threads). Let's start with the classical definition by Rob Pike (inventor of the Go programming language), and try to decode its meaning.
Parallelization is doing multiple tasks (related or non-related) at the same time whereas concurrency is about dealing with lots of things at once. Concurrency is about structure; parallelism is about execution. Concurrency provides a way to structure ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access