Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2013
Questions

Q16

MCQ1 mark, −0.33Operating systemsMedium

Three concurrent processes XX, YY, and ZZ execute three different code segments that access and update certain shared variables. Process XX executes the PP operation (i.e., waitwait) on semaphores aa, b,b, and cc; process YY executes the PP operation on semaphores bb, c,c, and dd; process ZZ executes the PP operation on semaphores cc, dd, and aa before entering the respective code segments. After completing the execution of its code segment, each process invokes the VV operation (i.e., signalsignal) on its three semaphores. All semaphores are binary semaphores initialized to one. Which one of the following represents a deadlock-free order of invoking the PP operations by the processes?

Sign in to save attempts.

Solutions and discussion are hidden while you attempt this question. They open once you check or show the answer.