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.
Which malaria vaccine developed by Oxford University and manufactured by Serum Institute of India has been added to the WHO's list of prequalified vacci...
Which ministry is responsible for the development of the National Maritime Heritage Complex (NMHC) in Lothal, Gujarat?
What honor was recently bestowed upon the renowned fashion designer Rahul Mishra by the French government?
On what date was the "Bhasha Setu" real-time translation challenge launched in India?
What amount has the Asian Development Bank (ADB) approved for a policy-based loan to improve India's health system?
Which Indian bank raised ₹5,000 crore through long-term infrastructure bonds in 2024?
With reference to the Central Administrative Tribunal, consider the following statements:
1. It had been established under Article 338 -A of the ...
The RBI's initiative to enhance digital lending transparency is primarily aimed at:
What is the main objective of the Project VISTAAR that IIT Madras is collaborating on?
The Viksit Krishi Sankalp Abhiyan campaign is scheduled to run during which period in 2025?