593 views

1 Answer

3 votes
3 votes

Answer is C. empty and full can be initialized any way depending on how we are going to use it. Here, empty is initialized to n-meaning n empty slots are there. So, producer must wait on this. Similarly, consumer must wait on full as it is initialized to 0.  

A similar question:

https://gateoverflow.in/3708/gate2004-it_65

Related questions

1 votes
1 votes
0 answers
1
1 votes
1 votes
1 answer
2
Pankaj Joshi asked Jan 12, 2017
1,466 views
Does semaphore solution fulfill the condition of bounded wait for more than 2 processesI know we can implement the waiting list in such a way that makes it satisfy bounde...
0 votes
0 votes
3 answers
3