866 views

3 Answers

1 votes
1 votes
Unsafe states are necessary condition for deadlock.

Like in this case if we run T1, T2 serially then no deadlock. But interleaved execution of T1, T2T2  may create deadlock condition. U can't say always deadlock, so better to say Unsafe
0 votes
0 votes
it will be a deadlock as the execution of any process cannot complete in any possible way of execution. unsafe state means the system may go to deadlock if not executed in a determined manner.
0 votes
0 votes

Being in a deadlock or being into unsafe state are two different things . Unsafe state is a state which MAY lead to deadlock but it has not happened yet , sometimes this may also happen if some process does not require max resources and it will terminate leaving resources for other processes , hence deadlock can be avoided in this way from unsafe state . For more info this can be referred https://cs.stackexchange.com/questions/45145/why-unsafe-state-not-always-cause-deadlock

Related questions

8 votes
8 votes
1 answer
3
Shubhanshu asked Aug 17, 2017
5,965 views
Why unsafe state not leads to deadlock?Please don't redirect to any other link. Explain it by taking an example.