... continued

This lesson demonstrates how to implement consumer-producer problem using mutexes.

We'll cover the following...

Mutex Implementation

In the previous section we implemented the consumer-producer problem using a mutex and condition variable pair and later using a monitor and condition variable pair. Both of them are the right approaches to solve the problem but for instructional purposes, let's see how we can solve the ...