retagged by
698 views

2 Answers

Best answer
3 votes
3 votes
From a safe state no deadlock is possible as long as the state does not change to an “unsafe state”. So, if the deadlock avoidance mechanism can ensure that a state always remains “safe”, then no deadlock will happen. But if from a safe state the system reaches an unsafe state, then deadlock is possible.
selected by
1 votes
1 votes
If already in deadlock, surely unsafe state.

If in unsafe state, some need of resource may go down with time and deadlock may never occur. (deadlock has not yet occured, may/maynot occur in future)

If in safe state and resources handled improperly, may lead to deadlock. (deadlock has not yet occured, may/maynot occur in future)

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
3 answers
3
Vegeta asked Oct 22, 2018
926 views
All safe states are deadlock free. But we can go to deadlock with some combination of sequence? So if the question is, from the safe state can we enter deadlock? Ans shou...
0 votes
0 votes
1 answer
4
vijju532 asked Aug 28, 2018
283 views
why spinlock requires context switch ?