Deadlocks questions

Q16

GATE CS 2013 CSDeadlocksMCQ1 mark−1/3 if wrong
Three concurrent processes X, Y, and Z execute three different code segments that access and update certain shared variables. Process X executes the PP operation (i.e., wait) on semaphores aa, bb and cc; process Y executes the PP operation on semaphores bb, cc and dd; process Z 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., signal) 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?
Show answer without attempting

Answer: B

0/10 correct0 marks

Related topics in Operating Systems