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.
An incandescent bulb rated as 100 W at 110 V is connected to a 220 V power supply. The power that dissipates in the bulb would be:
Where was the 14th edition of the All India Police Commando Competition held?
Where is Bhim Rao Ambedkar Sport stadium is located?
Which country holds the position of India's largest trading partner in the ASEAN region, with a trade value of USD 38 billion recorded in the previous y...
RBIβs differential interest rate on savings accounts applies to balances exceeding which of the following amounts?
The first Bharat Ratna award of independent India was given to:
Who is the Chief Minister of Chhattisgarh, as of January 2023?
Which of the following horticulture development mission is subsumed in Mission for Integrated Development of Horticulture (MIDH)?
What do you call a Glycocalyx that is a loose sheath type?
BharatPe partnered with which GOI body for its mentorship program?