Question

In a bounded-buffer producer-consumer solution using counting semaphores 'full', 'empty', and a binary semaphore 'mutex', a buffer of size 8 currently holds 5 items, and no process is currently inside the critical section. What are the current values of the 'full' and 'empty' semaphores, respectively?

A 3 and 5
B 5 and 8
C 8 and 5
D 5 and 3
E 3 and 8
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)