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.
Fill in the blanks with the correct alternatives from the choices given below them.
Ten thousand rupees _____distributed among the prize winnersÂ
Fill in the blanks in the following sentences with suitable adjectives and determiners.
_____ the girls were present in the function
Insert suitable articles wherever they are missing from the alternatives given below each sentence.
Indian Govt, wants to build strong India
Fill in the blanks with suitable articles from among the choices given below them.
He is known as ____ Bhishma of our times.
Fill in the blanks in the following sentences with suitable adjectives and determiners.
My ____ brother is an IAS officerÂ
Choose the correct Article.
______________ honest politician is a rarity these days.
Fill in the blanks with the correct alternatives from the choices given below them.
The great composer and singer ____in our midstÂ
Insert suitable articles wherever they are missing from the alternatives given below each sentence.
She has never touched onion.
Parts of the following sentence have been given as options. Select the option that contains an error.
Please pass me an piece of chalk that I can...
___________ David Dickson award for ____________ best performance in the Commonwealth Games is presented to one athlete.