0 votes 0 votes Operating System semaphore operating-system + – vaishali jhalani asked Jan 7, 2017 vaishali jhalani 1.1k views answer comment Share Follow See all 3 Comments See all 3 3 Comments reply Jason GATE commented Jan 7, 2017 reply Follow Share I think all the options are correct !!! Process B is never going to Starvation. Here , while(true) is used so , for all the options Process A is executed atleast once , and that's why it is also not going to startvation. 0 votes 0 votes Souro_Nath commented Apr 27, 2017 reply Follow Share How do u say that? How can there be multiple down o/p on the same semaphore without any up o/p and vice versa. Only option C satisfies. 0 votes 0 votes Jason GATE commented May 4, 2017 reply Follow Share Check again !!! Here while True is given means its an Infinite looping. And due to Context Switching in between there will be arising situation where Signal process will up the semaphore values. All the Options are Correct!!!! 1 votes 1 votes Please log in or register to add a comment.
0 votes 0 votes All options Satisfy the Condition to avoid Starvation. NOTE :Remove While True from the TOP , option (C) will be the Answer. Jason GATE answered May 4, 2017 Jason GATE comment Share Follow See 1 comment See all 1 1 comment reply Raj_81 commented Sep 7, 2019 reply Follow Share signal(Q), signal(P), Wait(P), Wait(Q) will have the Possible or not? 0 votes 0 votes Please log in or register to add a comment.