Operating System

1:

A state is safe if the system can allocate resources to each process (up to its maximum) in some order and still avoid deadlock. Then

A.

deadlocked state is unsafe

B.

unsafe state may lead to a deadlock situation

C.

deadlocked state is a subset of unsafe state

D.

all of these

 

Answer : D

Explanation :

Safe State

  • A system is in a safe state only if there exists a safe sequence of processes P1, P2, P3, Pn where:

    • For each Pi, the resources that Pi can still request can be satisfied by the currently available resources plus the resources help by all Pj, j<i.

  • If a system is in safe state, there is no deadlock.

  • If the system is deadlocked, it is in an unsafe state.

  • If a system is in unsafe state, there is a possibility for a deadlock.

  • Avoidance: making sure the system will not enter an unsafe state.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.