Question : If granting a resource request leads to an unsafe state, the operating system will
Solution :
Correct Answer : Deny or postpone the request
Description -
Question : In Banker’s Algorithm, the Need matrix is calculated as
Solution :
Correct Answer : Need = Max – Allocation
Description -
Question : A system is said to be in a safe state if
Solution :
Correct Answer : There exists a sequence in which all processes can complete
Description -
Question : Which algorithm is commonly used for deadlock avoidance in operating systems?
Solution :
Correct Answer : Banker’s Algorithm
Description -
Question : Deadlock avoidance in an operating system ensures that the system
Solution :
Correct Answer : Always remains in a safe state
Description -
Question : Spooling is mainly used to reduce which deadlock condition?
Solution :
Correct Answer : Mutual exclusion
Description -
Question : The hold and wait condition occurs when:
Solution :
Correct Answer : A process holds one resource and waits for another
Description -
Question : Which of the following is a practical way to prevent circular wait?
Solution :
Correct Answer : Assign priorities to resources
Description -
Question : Which of the following conditions must be removed to prevent deadlock?
Solution :
Correct Answer : Any one of the above
Description -
Question : Deadlock prevention ensures that:
Solution :
Correct Answer : Deadlock never occurs in the system
Description -
Question : Which of the following is NOT a strategy for handling deadlocks?
Solution :
Correct Answer : Deadlock scheduling
Description -
Question : Which strategy allows deadlocks to occur and then detects and resolves them?
Solution :
Correct Answer : Deadlock detection and recovery
Description -
Question : In deadlock avoidance, the operating system allocates resources only if:
Solution :
Correct Answer : The system remains in a safe state
Description -
Question : Deadlock prevention works by:
Solution :
Correct Answer : Eliminating at least one of the necessary conditions of deadlock
Description -
Question : Which strategy assumes that deadlock rarely occurs and the operating system simply ignores it?
Solution :
Correct Answer : Deadlock ignorance
Description -
Question : In a deadlock situation, what happens to the processes?
Solution :
Correct Answer : They remain blocked and cannot proceed
Description -
Question : Which condition means a process holds a resource while waiting for another resource?
Solution :
Correct Answer : Hold and wait
Description -
Question : Which of the following is NOT a necessary condition for deadlock?
Solution :
Correct Answer : Multitasking
Description -
Question : Deadlock mainly occurs due to competition for:
Solution :
Correct Answer : Resources
Description -
Question : What is a deadlock in an operating system?
Solution :
Correct Answer : When processes wait indefinitely for resources held by each other
Description -