Question

In the classic Producer-Consumer problem solved using counting semaphores 'empty' and 'full' for a shared circular buffer of size N, what are the correct initial values of 'empty' and 'full' respectively?

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