Which one of following statements is FALSE?
Which one of following statements is FALSE? Correct Answer All unsafe states lead to deadlocks
Option 1) All unsafe states lead to deadlocks, it is a false statement.
Explanation:-
Deadlock:- A deadlock is a situation in which two computer programs sharing the same resources are effectively preventing each other from accessing the resources, resulting in both programs ceasing to function.
An unsafe state may lead to a deadlock. As long as the state is safe, the OS can avoid unsafe states. Formally, a system is in a safe state only if there exists a safe sequence. So a safe state is not a deadlock state and conversely a deadlock state is an unsafe state.
Key Points
- In an unsafe state, the operating system cannot prevent processes from requesting resources in such a way that any deadlock occurs.
- A state of the system is called safe if the system can allocate all the resources requested by all the processes without entering into deadlock.
- A deadlock state can be perfectly safe, but it lasts forever, so your program has stopped, and will not resume execution.
- An unsafe state may crash the program, finish it with incorrect results, or indeed, finish it with a correct result.
মোঃ আরিফুল ইসলাম
Feb 20, 2025