All processes share a semaphore variable mutex, initialized to 1. Each process must execute wait(mutex) before entering the critical section and signal(mutex) afterward.
Suppose a process executes in the following manner.
wait(mutex);
…..
critical section
…..
wait(mutex);
a) a deadlock will occur
b) processes will starve to enter critical section
c) several processes maybe executing in their critical section
d) all of the mentioned
Answer: a
Explanation: A deadlock will occur
Related Posts
Operating System maintains the page table for ____________
What is compaction?
The page table contains ____________
Program always deals with ____________
The address of a page table in memory is pointed by ____________
Memory management technique in which system stores and retrieves data from secondary storage for use in main memory is called?
Run time mapping from virtual to physical address is done by ____________
Join The Discussion