1,825 views

5 Answers

Best answer
3 votes
3 votes

Indefinite blocking is the another term for starvation .. Meaning that a process may never be allowed to execute in the running state..This happens in SRTF and priority scheduling ..

This can be explained as :

As soon as the process having shortest remaining time is there , then another process of shorter time burst may arrive , or equivalently of higher priority may arrive in the ready queue..Hence starvation is possible in case of both of these..

As opposed this , the order in FCFS is defined already by the order in which they arrive in ready queue and hence ready state ..Same is the case of round robin algorithm..

Hence both B) and D) are correct answers..

selected by
1 votes
1 votes
Yes, because a new process can come with higher priority or shortest job and starve a job with lower priority job.
0 votes
0 votes
Yes, in SRTF if a shorter job keep on coming so longer job have to wait for indefinte time, same for priority as well .
0 votes
0 votes

Any priority based algorithm can lead to starvation. (Source of statement: Operating System Concepts, Galvin)

FIFO: No priority. Serve processes in order they arrive. Every process has equal priority. No starvation possible.

SJF/SRTF: Priority Based. Priorities are assigned based on remaining time. The process with lesser remaining time wins the contention. Can lead to starvation.

Round Robin: No priority. CPU scheduer treats ready queue as a circular queue and goes around giving equal slots of time to each process. No starvation is possible.

Priority Based: The name itself says priority. Can lead to starvation.

So yeah, options B and D are both correct.

Related questions

2 votes
2 votes
3 answers
3
hacker16 asked Nov 11, 2017
931 views
Which scheduling policy is most suitable for Real time operating systems?FCFSLCFSRound RobinPriority