What is the purpose of a deadlock detection algorithm?
Q1. What is the purpose of a deadlock detection algorithm?
Answer: To detect deadlocks
Explanation: A deadlock detection algorithm is used to detect deadlocks, which occur when two or more processes are blocked, waiting for each other to release resources.