GATEverse
← GATE CSE 2013

Q16

MCQ1 mark, −0.33

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.

Loading…