2 votes 2 votes In this empty must be 0 since producer will first produce only then it will empty Operating System process-synchronization semaphore + – radha gogia asked Oct 19, 2015 radha gogia 593 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
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 Arjun answered Oct 19, 2015 Arjun comment Share Follow See all 0 reply Please log in or register to add a comment.