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.
When did Prevention of Corruption Act, 1988 came into force?
What does Dictum mean?
According to Section 2(6) of the Registration Act, 1908 immovable property does not include_______.
Under the Industrial Disputes Act, 1947, what is the procedure for raising an individual industrial dispute concerning an employee and employer?
The Court held that Section 4 of the Specific Relief Act would only be available with regard to civil matters and not to criminal proceedings was held i...
If a minor draws, indorses, delivers or negotiates an instrument, such instrument binds
According to the Companies Act provisions _____________means such capital as is authorised by the memorandum of a company to be the maximum amount of sh...
According to Section 309(2) BNS, theft becomes robbery if, in committing theft, the offender:
Under which circumstances can a person apply for anticipatory bail, and which court can grant it?
Section 221 provides that for offences under Section 67 BNSS where the parties are married—