0 0 votes Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S, T and U: Process P: Process Q: P(S) W: P(T) X: P(U) Y: Print ‘a’ Print ‘a’; Print ‘b’ Print ‘b’; V(S) A: V(T) B: V(U) C: What should be written at W to avoid deadlock? (a) P(T) (b) P(U) (c) P(S) (d) Not possible to avoid deadlock Operating System + – Prayag 598 views answer comment Share Follow Print See all 3 Comments 3 3 Comments reply kumar.dilip commented Nov 14, 2018 reply Follow flag Add the Gate year. 0 0 replyShare Prayag commented Nov 14, 2018 reply Follow flag Sorry but I don't know the gate year. I found it in a practice book and year wasn't mentioned. 0 0 replyShare Shivam Kasat commented Nov 14, 2018 i edited by Shivam Kasat Nov 14, 2018 reply Follow flag If W= P(S) Y=P(T) Z=P(U) Then no deadlock If W= P(S) Y=P(U) Z=P(T) then also no deadlock will occur. So for this particular question C is the correct answer. 0 0 replyShare Please log in or register to add a comment.