A system has three types of resources, R1, R2, and R3, and their numbers of units are 3, 2, and 2, respectively. Four processes P1, P2, P3, and P4 are currently competing for these resources in the following manner: (5 Marks)
(a) P1 is holding one unit of R1 and is requesting for one unit of R2.
(b) P2 is holding two units of R2 and is requesting for one unit each of R1 and R3.
(c) P3 is holding one unit of R1 and is requesting for one unit of R2.
(d) P4 is holding two units of R3 and is requesting for one unit of R1
Determine which, if any, of the processes are deadlocked in this system state