CS FundamentalsHardGATE CS
Which statement about deadlock in a system with only ONE resource type that has 10 instances is correct?
- A. Deadlock is impossible with a single resource type
- B. Every cycle implies deadlock
- C. Deadlock requires at least two resource types
- D. A cycle in the resource-allocation graph does not by itself imply deadlock, because other instances may be released
Correct answer: D. A cycle in the resource-allocation graph does not by itself imply deadlock, because other instances may be released
Processes can deadlock over instances of one type (each holds some and waits for more). With multiple instances, a cycle is necessary but not sufficient; the detection algorithm must check whether requests can be satisfied.
More Operating Systems questions
- What is the main drawback of deadlock prevention by requiring a process to request ALL its resources before starting (breaking…
- Deadlock recovery by process termination: which criteria are sensible for choosing a victim? 1. Lowest priority 2. Least CPU time consumed…
- An OS uses the Banker's algorithm. Which assumption must hold for it to be applicable?
- Processes (arrival, burst): P1 (0, 6), P2 (1, 8), P3 (2, 7), P4 (3, 3). Under SRTF, what is the turnaround time of P2?
- Preemptive priority scheduling (smaller number = higher priority; equal priority is FCFS and does not preempt). Processes (arrival, burst…
- Five processes all arrive at time 0 in the order P1 (10), P2 (1), P3 (2), P4 (1), P5 (5) (bursts in ms). What is the average waiting time…