Question: A mutex is a synchronization mechanism that allows programs to provide the feature of mutual exclusion. If a mutex is used to protect access to

A mutex is a synchronization mechanism that allows programs to provide the feature of mutual exclusion. If a mutex is used to protect access to a buffer, which of the following statements are true?
Select 2 correct answer(s)
Question 25 options:
A mutex is automatically locked when the protected buffer is accessed and automatically unlocked after the access is complete.
A process or thread must lock the mutex before accessing the buffer.
Multiple processes or threads can simultaneously lock a mutex while protecting the buffer when accessing it.
A mutex can be used to ensure only one process or thread has access to the buffer at a time.
A mutex cannot be used to protect resources like a buffer.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!