Forums Assignment Help What is a Safe State and its? use in deadlock avoidance?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1009
    ahwriter
    Participant

    What is a Safe State and its? use in deadlock avoidance?

    #9573
    Aakanksha
    Participant

    When a process requests an available resource, system must decide if immediate allocation leaves the system in a safe state

    System is in safe state if there exist a safe sequence of all processes.

    Sequence <P1, P2? Pn> is safe if for each Pi, the resources that Pi can still request can be satisfied by currently available resources + resources held by all the Pj, with j<I.

    If Pi resource needs are not immediately available, then Pi can wait until all Pj have finished.

    When Pj is finished, Pi can obtain needed resources, execute, return allocated resources, and terminate.

    When Pi terminates, Pi+1 can obtain its needed resources, and so on.

    ->Deadlock Avoidance ?ensure that a system will never enter an unsafe state.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.