Which of the following methods is used to prevent deadlock in an operating…
2025
Which of the following methods is used to prevent deadlock in an operating system ?
- A.
Resource allocation graph
- B.
Locking mechanisms
- C.
Deadlock detection algorithms
- D.
All of the above
Attempted by 69 students.
Show answer & explanation
Correct answer: B
The correct answer is 2) Locking mechanisms (specifically, disciplined locking protocols designed to break one of Coffman's four deadlock conditions, such as acquiring locks in a strict global hierarchy to prevent circular wait).