598 views
2 2 votes

Why do we say that Longest Remaining time first is a starvation free algorithm?

Let me walk through my though process, same as LRTF is Shortest Remaining time first and it is given that (in multiple standard books) SRTF may lead to starvation as short process may keep on coming and long process will never get the processor the execution, i.e. long process might never be scheduled.
Its find until now.

Now if we apply the same logic to LRTF, as the longer process gets scheduled its true that eventually it will get shorter and the shorter process may be scheduled but there is also a chance that longer process may keep on coming and the most short process may never get the hold of the process.
 

What i think is the reason is longer burst time process and not so frequent to short burst time process so it is unlikely that longer burst time process will keep on coming, but still i don’t think it is never a possibility that longer process will never keep on coming.

Please can anyone clarify me about the logic about why LRTF are considered starvation free algorithms.

Please log in or register to answer this question.

Position:
Show:

Related questions

1 1 vote
1 answers 1 answer
1.5k
1.5k views
shivangi5 asked Oct 27, 2017
1,523 views
Consider four process all are arriving at time zero, with total execution time of 20, 10, 10 and 20 unit respectively. Each process spends the first 20% of execution time...
3 3 votes
1 answers 1 answer
3.7k
3.7k views
aishwarydewangan asked Jul 25, 2017
3,670 views
A and B are the only two processes in the system. Both are in the ready state. A arrives before B but the difference in arrival time is negligible. A is a CPU bound proce...
3 3 votes
3 3 answers
272
272 views
GO Classes asked Jul 21
272 views
Consider the following processes:$$\begin{array}{c|c|c} \text{Process} & \text{Arrival Time} & \text{Processing Time} \\ \hline P_1 & 0 & 2 \\ P_2 & 1 & 6 \\ P_3 & 4 & 1 ...
4 4 votes
1 1 answer
298
298 views
GO Classes asked Jul 18
298 views
Which of the following statements are correct?The CPU dispatcher determines the policy for which process should be run and when. With cooperative multitasking, it is poss...