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.
Where there is an unconditional contract for the sale of specific goods in a deliverable state, the property in the goods passes to the buyer
Indian Evidence Act, 1872 was enforced on :
How often is the Board required to meet according to the Micro, Small and Medium Enterprises Development Act?
What is the penalty for withholding property, etc. as per section 30 of the General Insurance Business (Nationalisation) Act?
The judgment in every trial in any Criminal Court or original jurisdiction shall be pronounced in open Court by the presiding officer immediately after ...
As per FEMA what is the timeframe within which the Adjudicating Authority should endeavor to dispose of a complaint received by it?
In the event of occurrence of any vacancy in the office of the Presiding Officer of the Securities Appellate Tribunal by reason of his death, resignatio...
When a counterclaim is set up in a suit, what happens to the counterclaim if the suit is dismissed?
As laid down under section 7 of the IBC the financial creditor shall, along with the application furnish________________
The President shall be ________