Concepts

You’ll learn the basic concepts of message passing concurrency in this lesson.

We'll cover the following...

Concurrency

Concurrency is a concept similar to parallelism. Both involve executing programs on threads, and as parallelism is based on concurrency, they are sometimes confused with each other.

The following are the differences between parallelism and concurrency:

  • The main purpose of parallelism is to take advantage of microprocessor cores to improve the performance of programs. Concurrency on the other hand, is a concept that may be needed even in a single-core environment. Concurrency is about making a program run on more than one thread at a time. An example of a concurrent program would be a server program that is responding to ...