Forums Assignment Help What is the Condition for deadlock occurrence?

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

    What is the Condition for deadlock occurrence?

    #9576
    Aakanksha
    Participant

    Deadlock can arise if four conditions hold simultaneously.

    Mutual exclusion: only one process at a time can use a resource.

    Hold and wait: a process holding at least one resource is waiting to acquire additional resources held by other processes.

    No preemption: a resource can be released only voluntarily by the process holding it, after that process has completed its task.

    Circular wait: there exists a set {P0, P1, P2, P3} of waiting processes such that P0 is waiting for a resource that is held by P1, P1 is waiting for a resource that is held by P2, P2 is waiting for a resource that is held by P3, and P3 is waiting for a resource that is held by P0.

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