Q16
Three concurrent processes X, Y, and Z execute three different code segments that access and update certain shared variables. Process X executes the operation (i.e., wait) on semaphores , and ; process Y executes the operation on semaphores , and ; process Z executes the operation on semaphores , , and before entering the respective code segments. After completing the execution of its code segment, each process invokes the 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 operations by the processes?
Show answer without attempting
Answer: B