3 votes 3 votes I got the state to be unsafe since Available is (1,1) which can't satisfy the need of any process so why is not deadlock ? Operating System resource-allocation + – radha gogia asked Oct 14, 2015 radha gogia 866 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
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 Digvijay Pandey answered Oct 14, 2015 Digvijay Pandey comment Share Follow See all 3 Comments See all 3 3 Comments reply Tendua commented Oct 14, 2015 reply Follow Share here i think any execution cannot satisfy the needs of process . and no safe sequence is possible . 0 votes 0 votes Digvijay Pandey commented Oct 14, 2015 reply Follow Share Type 1 followed by Type 2 ??? 0 votes 0 votes radha gogia commented Oct 14, 2015 reply Follow Share So in general if the available is not able to meet the requirement of any process so should I simply declare it to be unsafe state ? 0 votes 0 votes Please log in or register to add a comment.
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. Tendua answered Oct 14, 2015 Tendua comment Share Follow See all 0 reply Please log in or register to add a comment.
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 Mohnish answered Sep 28, 2020 Mohnish comment Share Follow See all 0 reply Please log in or register to add a comment.