Question
Which CPU scheduling algorithm always selects the
process with the smallest burst time first, potentially leading to starvation?Solution
Shortest Job First (SJF) selects the process with the smallest burst time for execution. This reduces the average waiting time and is optimal in that sense. However, it can cause starvation for longer processes if smaller processes keep arriving, as they continually preempt the longer ones. SJF can be preemptive (Shortest Remaining Time First) or non-preemptive. The algorithm is often used in batch systems where burst times are known beforehand. For example, it works well in scenarios like batch job execution in legacy systems. Why Other Options Are Incorrect :
- Round Robin (RR) : Ensures fairness by assigning equal time slices, but does not prioritize based on burst time.
- First Come First Serve (FCFS) : Simple but may lead to poor average waiting time if a long process arrives first.
- Priority Scheduling : Schedules based on priority, not burst time, and may also lead to starvation of low-priority tasks.
- Multilevel Queue Scheduling : Divides processes into multiple queues based on priority or type, but does not specifically prioritize short jobs.
The Prakritik Kheti Khushshal Kissan Yojana (PKKKY) was launched by the ……………………………government to promote organic / Zero Budget Na...
The Government e-Marketplace, GeM platform was launched in which year?
What are the advantages of Conservation Agriculture?
1. Reduction of production and labour costs is possible.
2. It is possible to em...
The National Bank For Agriculture And Rural Development has celebrated its …………. Foundation day on 12 july 2022.
The National Agricultural Cooperative Marketing Federation of India Ltd (NAFED) is an apex organization of marketing cooperatives for agricultural prod...
The United Nations Framework Convention on Climate Change (UNFCCC) at ongoing 27th Conference of Parties (COP27) 2022 held in (or) Which country will h...
Consider the Following statement about RBI’s new regulatory framework for urban cooperative banks:
I. It is the four-tiered regulatory framewor...
National Agricultural Cooperative Marketing Federation of India Ltd.(NAFED) was established on the auspicious day of Gandhi Jayanti on 2nd October 1958...
In global warming the temperature of ……………. Increases
India’s first vaccine to prevent Lumpy Disease was developed by which of the following Institute?