Q1. What is a Mutex?

Ans. Mutex is a semaphore, used to make sure producer and consumer do not access the buffer at the same. Mute is initially 1. The mutex semaphore is used for mutual semaphore is used for mutual exclusion. It is designed to guarantee that only one process at a time will be reading or writing the buffer and the associated variables.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: