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:

  1. P1 requests A
  2. P2 requests B
  3. P1 requests B
  4. 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.

More from this paper