Which of the following CPU scheduling algorithms may cause starvation of a process? (1) First-Come-First-Served (2) Round Robin (3) Priority scheduling (4) Shortest-Process-Next (5) Shortest-Remaining-Time-First
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. 3, 4 and 5
Explanation
FCFS (1) serves processes strictly in arrival order with no reordering, so every process is eventually served — it cannot starve anyone. Round Robin (2) gives every ready process a guaranteed time slice in rotation, so it also cannot starve a process. Priority scheduling (3) can starve a low-priority process indefinitely if higher-priority processes keep arriving. Shortest-Process-Next (4) and Shortest-Remaining-Time-First (5) can both starve a long process if a continuous stream of shorter jobs keeps being favoured. So the starvation-prone set is {3, 4, 5}, option (ii).More Discrete Structures and Optimization questions
- A scheduling algorithm assigns a process's priority proportional to how long it has been waiting; every process starts at priority zero (th…
- Match List I with List II List I List II
- Choose the correct statement for a group G :
- Which one of the following is not a basic solution of the system of linear equations x₁ + 2x₂ + x₃ = 4, 2x₁ + x₂ + 5x₃ = 5?
- Match the logically equivalent propositions. List I: A. p → q, B. ¬(p ∨ (¬p ∧ q)), C. p ↔ q, D. ¬(p ↔ q). List II: I. (p ∧ q) ∨ (¬p ∧ ¬q),…
- The probability that A hits a target is 1/4 and the probability that B hits it is 2/5. Both shoot at the target. What is the probability th…