revision - Need some clarification on Bankers Algorithm -


A quick query about safe / unsecured states only in Dixstrass ...

If a process In the snapshot of the system (for example below) already has already completed all of its requirements and adequate resources are not available to meet the requirements of any other processes, is the system in a safe condition? I usually know that once the process is finished its resources, it will end soon and all the resources will be returned, but is this notion in this situation when we calculate the state of the system Are you

  Allocated Maximum Available. A. B A. B.A. B --- --- --- --- --- --- 1 1 | 2p1 1 | 2 1 3p2 5 | 3p2 7 | 8  

Edit

Just to clarify my question: Is the system in the above example in a safe condition or an unsafe condition? Do we believe that requests of P2 are delayed until the returns are received, until P1 return resources can not be completed and therefore the system is safe, or the system is unsafe, because possibly one of the possible requests Can not even be completed?

The system is in a secure state because process 1 can be run. When it is finished, Process 2 will end up processing enough copies of Resource A and Resource B. Thus, there is a "schedule" with which the system can complete the entire process. This means that it is safe.


Comments