908 views
0 votes
0 votes
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 should be YES.

please give your thought

3 Answers

1 votes
1 votes
We cannot enter into deadlock from a safe state. In second line  you have asked can we go to deadlock with some combination of sequence? Ans is maybe, because if there exists no safe sequence it is in unsafe state. However an unsafe state may or may not be lead to deadlock. But There is no chance of getting into deadlock from a safe state.
0 votes
0 votes
safe state current allocation result no problem as cpu has enough resources

but in case of unsafe state current allocation may result in low available resource and from that unsafe state we can reach to a deadlock
0 votes
0 votes

Dead lock Is a subset of Unsafe State , it means that If the System is in Deadlock It will necessary In the Unsafe state but it does not mean that if system is in unsafe state then it is definitely deadlock state.

(or)

All safe states are deadlock free. But not all unsafe states lead to deadlock. There might be a possibility that an unsafe state might complete successfully. Unsafe states are a necessary condition for deadlock, but not sufficient.

 

Related questions

0 votes
0 votes
1 answer
1
0 votes
0 votes
0 answers
3