Question

In the classic bounded-buffer producer-consumer problem using a buffer of size N, to what value should the counting semaphore 'empty' (tracking free buffer slots) be initialized?

A N
B 1
D N-1
E -1
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)