Question
Which of the following statements is true about
deadlocks in an operating system?Solution
Deadlocks arise when a set of processes is blocked because each process is holding a resource and waiting for another resource that is currently held by another process in the set. This creates a circular wait condition. Deadlock avoidance is a strategy to ensure that the system never enters a deadlocked state. One such method is implementing the "No Hold and Wait" condition, where processes are required to request all required resources simultaneously or release currently held resources before requesting new ones. This approach prevents the circular wait condition from forming, thereby avoiding deadlocks. For example, in resource allocation, the Banker's Algorithm is a practical method for deadlock avoidance. Why Other Options Are Incorrect :
- Deadlocks occur when multiple processes are competing for a single CPU core in a multithreaded environment : This describes resource contention, not deadlock. Deadlocks involve resources like files, printers, or memory, not CPU cores specifically.
- Deadlocks can only occur when using the Round Robin CPU scheduling algorithm : Deadlocks are independent of CPU scheduling algorithms and depend on resource allocation policies.
- Deadlocks are resolved by the Least Recently Used (LRU) page replacement algorithm : LRU is a page replacement algorithm used in memory management, not for resolving deadlocks.
- Deadlocks cannot occur if the system uses multithreading instead of multiprocessing : Deadlocks can occur in both multithreading and multiprocessing if resource allocation policies create circular waits.
Who among the following devised the policy ‘Doctrine of Lapse’?
Where did INC Split for the first time?
According to the Portuguese writer Nuniz, in which of the following fields were women of the Vijayanagara Empire proficient?
1. Wrestling
...
Who was the founder of the Rashtrakuta dynasty?
Who was the opponent Lakshya Sen defeated to secure a semi-finals spot at the 2024 Paris Olympics, a historic achievement for an Indian male badminton p...
What initiative provides 90% credit guarantee coverage to women-led MSMEs?
______ are contracts that give the owner the right, but not the obligation, to buy (in the case of a call option) or sell (in the case of put option) an...
Where did the 10th Sci-FI Science Film Festival of India take place in 2025?
What is the name of the government initiative aiming to increase milk production in India by 2025?
Which of these ocean currents is not associated with the North Atlantic Ocean?