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.
Which of the following is related to SDG Goal No 5?
Under the "Indira Gandhi Pyari Behna Sukh Samman Nidhi Yojana," what monthly aid will be provided to women above 18 years of age in Himachal Pradesh?
The element with atomic number 59 lies in which block of the Periodic Table?
Rajasthan govt announced new districts ahead of assembly polls. Which of the following is INCORRECT about this announcement?
1. Rajasthan chie...
Who has been sworn in as the third Vice- President of Nepal?
Who is the present CEO of NITI Aayog?
Which country will be hosting the Summer Olympics 2028?
Each sentence below has one or two blanks. Fill in these blanks with the most appropriate word/ phrase from the four options that are given following ea...
Which is the supreme institution of law in India?
HCFC-141 b is one of the most powerful ozone-depleting chemicals after Chlorofluorocarbons (CFCs). What is the full form of HCFC?