Introduction to Mutexes
This lesson gives an introduction to mutexes, which are used in C++ for concurrency.
We'll cover the following...
We'll cover the following...
Mutex stands for mutual exclusion. It ensures that only one thread can access a critical section at any one time. By using a mutex, the mess of the workflow turns into harmony.
Essentially, when the lock is set on a mutex, no other thread can access the locked region of code. In other words, lines ...