Get premium membership and access questions with answers, video lessons as well as revision papers.

Describe how to implement a lock using semaphores

      

Describe how to implement a lock using semaphores

  

Answers


Faith
You place a P(mutex) before writing to a critical variable, then a V(mutex) to signal that the operation is
complete so that other processes may have their turn.
Titany answered the question on April 26, 2022 at 09:19


Next: A semaphore is a blocking synchronisation primitive. Describe how they work with the aid of pseudo-code. You can assume the existance of a thread_block() and a...
Previous: What are monitors and condition variables?

View More Operating Systems Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions