Neither will release the resource that it already owns until it has acquired the other resource and performed the function requiring both resources. 6.1 Which control problem will be faced by the two processes in the above scenario?
Consider two processes, P1 and P2, and two resources namely the printer and the memory. However,each process needs access to both resources to perform part of its function. The OS assigns memoryto P2, and the printer to P1. Each process is waiting for one of the two resources. Neither will release
the resource that it already owns until it has acquired the other resource and performed the function requiring both resources.
6.1 Which control problem will be faced by the two processes in the above scenario?
Here we can see that printer is assigned to process P1 and memory of assigned to process P2 while both the processes P1 and P2 need access to both the resources. So here one process will not release the resource that is holding until it gets the other resource that it needs hence leading both the processes into a scenario called deadlock .
Step by step
Solved in 2 steps