Operating System (OS) Question: Download Operating System (OS) PDF

Tell me if you know how are the wait/signal operations for monitor different from those for semaphores?

Tweet Share WhatsApp

Answer:

If a process in a monitor signal and no task is waiting on the condition variable, the signal is lost. So this allows easier program design. Whereas in semaphores, every operation affects the value of the semaphore, so the wait and signal operations should be perfectly balanced in the program.

Download Operating System (OS) PDF Read All 74 Operating System (OS) Questions
Previous QuestionNext Question
Explain time-stamping?What are placement and replacement algorithms In the context of memory management?