in Operating System recategorized
4,403 views
2 votes
2 votes

Which of the following scheduling algorithms may cause starvation ?

  1. First-come-first-served
  1. Round Robin
  1. Priority
  1. Shortest process next
  1. Shortest remaining time first 
  1. a, c and e
  2. c, d and e
  3. b, d and e
  4. b, c and d
in Operating System recategorized
4.4k views

4 Answers

4 votes
4 votes
Best answer
  1. First-come-first-served- No starvation
  2. Round Robin-  No starvation
  3. Priority- starvation if higher priority process called again and again, lower priority starves
  4. Shortest process next -starvation possible
  5. Shortest remaining time first -starvation possible as its a preemptive version of shortest process next casuing apotential for longer processes to starve.

so option 2---  c,d,e

selected by

4 Comments

how is it true for 5?
0
0

As the Shortest remaining time first scheduling is a preemptive version of shortest job scheduling. It may cause starvation as shorter processes may keep coming and a long CPU burst process never gets CPU.

from wiki:- Like shortest job first, it has the potential for process starvation; long processes may be held off indefinitely if short processes are continually added. This threat can be minimal when process times follow a heavy-tailed distribution.[1] A similar algorithm which avoids starvation at the cost of higher tracking overhead is Highest response ratio next.

5
5
In FIFO how starvation not possible, as if first process takes longer time then last process can cause starvation.
1
1
  1. In First Come First Serve(FCFS) if a process with a very large Burst Time comes before other processes, the other process will have to wait for a long time but it is clear that other process will definitely get their chance to execute, so it will not suffer from starvation.
0
0
1 vote
1 vote
answer is (2)c,d and e
1 vote
1 vote
Out of the given protocols, only round-robin is sure of not getting the starvation. However, we can assume FCFS to be starvation-free (Only by looking at the options).

option is B
0 votes
0 votes

 Starvation is the name given to the indefinite postponement of a process because it requires some resource before it can run, but the resource,
though available for allocation, is never allocated to this process.
1. Priority: A process ready to run for CPU can wait indefinitely because of low priority.
2. Shortest process next : longest process possibility to get starvation.
3. Shortest remaining time first: longest process possibility to get starvation.
Solution: Aging
FCFS and Round Robin scheduling never happen indefinite blocking.

ANS B

Answer:

Related questions