Homework Solution: Each question below lists two or more sequences of lock acquisition and releases. Given each gr…

    Each question below lists two or more sequences of lock acquisition and releases. Given each group of sequences, state whether deadlock can occur and if so give one possible sequence that results in deadlock. 1. a1. LOCK(A); a2. LOCK(B); a3. LOCK(C); a4. UNLOCK(A); a5. UNLOCK(B); a6. UNLOCK(C); b1. LOCK(B); b2. LOCK(C); b3. UNLOCK(B); b4. UNLOCK(C); 2. a1. LOCK(A); a2. LOCK(B); a3. LOCK(C); a4. UNLOCK(A); a5. UNLOCK(B); a6. UNLOCK(C); b1. LOCK(C); b2. LOCK(B); b3. UNLOCK(B); b4. UNLOCK(C); 3. a1. LOCK(A); a2. UNLOCK(A); a3. LOCK(B); a4. UNLOCK(B); a5. LOCK(C); a6. UNLOCK(C); b1. LOCK(C); b2. LOCK(B); b3. UNLOCK(B); b4. UNLOCK(C);

    Expert Answer

     
    Deadlock is when one process is wait for another proce

    Each inquiry beneath lists span or further continuitys of lock wages and discharges. Impartn each class of continuitys, declare whether deadlock can arise and if so impart single practicable continuity that results in deadlock.

    1.

    a1. LOCK(A);

    a2. LOCK(B);

    a3. LOCK(C);

    a4. UNLOCK(A);

    a5. UNLOCK(B);

    a6. UNLOCK(C);

    b1. LOCK(B);

    b2. LOCK(C);

    b3. UNLOCK(B);

    b4. UNLOCK(C);

    2.

    a1. LOCK(A);

    a2. LOCK(B);

    a3. LOCK(C);

    a4. UNLOCK(A);

    a5. UNLOCK(B);

    a6. UNLOCK(C);

    b1. LOCK(C);

    b2. LOCK(B);

    b3. UNLOCK(B);

    b4. UNLOCK(C);

    3.

    a1. LOCK(A);

    a2.

    UNLOCK(A);

    a3. LOCK(B);

    a4. UNLOCK(B);

    a5. LOCK(C);

    a6. UNLOCK(C);

    b1. LOCK(C);

    b2. LOCK(B);

    b3.

    UNLOCK(B);

    b4. UNLOCK(C);

    Expert Apology

     

    Deadlock is when single course is abide restraint another course wealth discharge and succor course abides restraint foremost course wealths. this abide is restraintever. then the top is of deadlock.

    I am uploading solutions.