Deadlocks - deadlock characterization, prevention, avoidance, detection and recovery methods - Question Bank
1. Which of the following is a characteristic of the 'Circular Wait' condition for deadlock?
2. What is the primary goal of deadlock detection algorithms?
3. Which method of deadlock recovery involves selecting a process and restarting it from a previous checkpoint?
4. In the Banker's Algorithm, if a process requests more resources than its maximum declared need, what is the consequence?
5. Which of the following is a condition for deadlock that states that a process will not be preempted until it voluntarily releases the resource?
6. What is the fundamental difference between deadlock prevention and deadlock avoidance?
7. Which of the following is a deadlock prevention technique that involves ordering all resource types?
8. When recovering from a deadlock by aborting a process, what is a common strategy to minimize cost?
9. Which of the following is a deadlock detection algorithm that relies on checking for cycles in a graph?
10. What is the purpose of the 'Allocation' matrix in the Banker's Algorithm?
11. Which condition for deadlock is violated if a process releases all its resources before acquiring new ones?
12. What is a potential disadvantage of using deadlock prevention methods?
13. Which deadlock recovery strategy involves choosing a process and preempting its resources until the deadlock is resolved?
14. A cycle in a Resource Allocation Graph with multiple instances of each resource type implies:
15. In the Banker's Algorithm, what does the 'Max' matrix represent?
16. Which of the following is a deadlock prevention strategy that requires a process to request all of its resources at one time?
17. If a process is preempted and its resources are taken away, which deadlock condition is being violated?
18. Which of the following is a condition that MUST hold for a deadlock to occur?
19. When recovering from a deadlock by preempting resources, what is a common criterion for selecting a victim process?
20. Which of the following is a method of deadlock detection that works by trying to find a sequence of process completions?
21. In deadlock avoidance, a 'safe state' guarantees that:
22. What is the 'Progress' condition, which is NOT necessary for deadlock, often related to?
23. Which of the following is a method of deadlock prevention that involves ensuring that processes do not request resources in a circular manner?
24. Which recovery strategy involves aborting all deadlocked processes?
25. In a Resource Allocation Graph, a cycle indicates:
26. The Banker's Algorithm is primarily used for:
27. Which of the following is a characteristic of the 'No Preemption' condition for deadlock?
28. Which condition for deadlock is violated if a process can be forced to release its resources even if it is still using them?
29. In deadlock recovery, what is the process of 'Rollback'?
30. Which of the following is a common representation for detecting deadlocks in a system with multiple instances of each resource type?
31. Which of the following is a strategy for deadlock prevention by ensuring that once a process has started using a resource, it cannot be preempted?
32. What is the main challenge with deadlock detection algorithms?
33. Which of the following is a method to recover from deadlock by selecting a victim process and aborting it?
34. In the context of deadlock avoidance, what does the 'Available' vector represent in the Banker's Algorithm?
35. Which condition is violated by setting all resources to be shareable?
36. What is the 'Mutual Exclusion' condition for deadlock?
37. Which of the following is a disadvantage of deadlock prevention techniques?
38. When recovering from a deadlock by preempting resources, what is a critical consideration?
39. Which of the following is a method for deadlock detection that involves maintaining a matrix of available resources and resource requests?
40. A state is considered 'safe' in the Banker's Algorithm if:
41. Which condition for deadlock is violated if a process can be forced to relinquish resources it holds?
42. What is the primary goal of deadlock avoidance algorithms?
43. If a deadlock is detected, which of the following is NOT a common recovery strategy?
44. Which of the following is a deadlock detection algorithm that uses a wait-for graph?
45. In the Banker's Algorithm, what does the 'Need' matrix represent?
46. Which deadlock avoidance algorithm dynamically examines the resource allocation state to ensure that there is never a state where a circular wait condition can occur?
47. Which of the following is a characteristic of the 'Hold and Wait' condition for deadlock?
48. Which deadlock prevention strategy involves ordering all resource types and requiring processes to request resources in increasing order of enumeration?
49. In deadlock prevention, which condition is violated by ensuring that every process requests all its resources before it starts execution?
50. Which of the following conditions is NOT necessary for a deadlock to occur?