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 System Software and Operating System questions
- A scheduling algorithm assigns a process's priority proportional to how long it has been waiting; every process starts at priority zero (th…
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on th…
- At a particular time of computation, the value of a counting semaphore is 7. Then 20 P operations and 'x' V operations were performed on th…
- Consider a system with five processes P0 through P4 and three resource types A, B and C, with 7, 2 and 6 total instances respectively. At t…
- The Bounded Buffer problem is also known as the ________.
- Two atomic operations permissible on semaphores are ________ and ________.