A and B are two resources. Two processes (P1 and P2) share these resources. When a process requests a resource, if that resource is free it is…
A and B are two resources. Two processes (P1 and P2) share these resources. When a process requests a resource, if that resource is free it is allocated to that process; if it is not free, the process halts. The scenario is:
- P1 requests A
- P2 requests B
- P1 requests B
- P2 requests A
(i) Now A is allocated to which process?
(ii) Now B is allocated to which process?
(iii) What is the name of the situation that happens in this scenario?
From the DPDC Junior Assistant Manager (ICT) 2020 – Written (BUET) exam, question 3 of 9.