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.
- Given below is a sentence with one blank. Below the sentence are given four words among which one word might fill the blank. If none of the words fill the ...
In the Shanghai Masters final, Djokovic ______________by Jannik Sinner in straight sets, a match that highlighted the _____________talent in men's tennis.
You had only to ________ at him,to see that he _______ a ____________ Bengali.
The Committee ________ data minimization and accountability of those who process and control data.
(A) did
(B) favours
(C) challeng...
Fill blank number 26 with correct option:
The government’s modified scheme ____________ that legal heirs of farmers who have committed suicide on being unable to pay the loan ______________ f...
Drink ____ of liquids ____ the day even if you don’t feel thirsty.
In the following question a sentence is given with a blank. Choose the most appropriate option to make the sentence contextually and grammatically corr...
Every three hours ___________ the experiment, participants completed _______ easy 40-minute driving scenario.
In …….. days of commercialization of medical profession, the likes of him were rare ……….