Question

A binary semaphore 'mutex' is initialized to 1. Four processes execute wait(mutex) in quick succession, with no corresponding signal(mutex) call in between. What is the resulting value of mutex, and what happens to the processes?

A mutex = -3; all four proceed
B mutex = 4; all processes are blocked
C mutex = 0; one process proceeds, three are blocked
D mutex = -3; three are blocked
E mutex = 0; all four proceed simultaneously
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)