MCQs City stays free thanks to ads. Please turn off your ad blocker for this site so content and features keep working.
Operating System
Classic Sync Problems
Q
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. advertisement signal(mutex); ..... critical section ..... wait(mutex); In this situation :
AA. A deadlock will occur
BB. Processes will starve to enter critical section
CC. Several processes maybe executing in their critical section
DD. All of the mentioned
Correct Answer:
C. C. Several processes maybe executing in their critical section