All processes share a semaphore variable mutex, initialized to 1. Each process must execute wait(mutex) before entering the critical section

Thê Hy

New member
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.
Code:
signal(mutex);
.....
critical section
.....
wait(mutex);
In this situation :
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
 

Tìm kiếm

Back
Top