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.
According to the United Nations, what percentage of people will live in cities by 2050?
Gir forest, which is famous for the Asiatic lion, is located in:
Which schedule was added to the constitution by the 73rd Constitutional Amendment?
When do we celebrate ‘National Unity Day’?
What is the name of the portal launched to combat fraud calls and cybercrime in India?
The loss of water in the form of water droplets from leaves of plants is called _____.Â
The Comptroller and Auditor General of India examines the accounts of which of the following?
The missing number in the given figures is
In which of the following years was the Muslim League formed?
For what purpose is the PRAN number used, a 12-digit unique identifier assigned to individuals?