Unformatted text preview:

Slide 1Slide 2Types of SchedulingShort-Term SchedulingShort-Term Scheduling CriteriaShort Term Scheduling PoliciesSelection FunctionDecision ModeProcess Scheduling ExampleFCFS/FIFO PolicySlide 11Virtual Round Robin PolicySlide 13Shortest Process Next PolicyShortest Remaining Time PolicyHRRN PolicyMulti-Level Feedback PolicySlide 18Quantum = 1Quantum = 2iUniprocessor SchedulingScheduling of Processes2Types of SchedulingLong-term (least frequent decision)When an new process is created, will it be admitted to the ready queue?Controls degree of multiprogramming (balances response/turnaround time and processor utilization)Can consider priority, expected execution time, I/O requirements, etc.Responds to requests for interactive sessionsMedium-termWhich processes should have frames allocated?Also affects degree of multiprogrammingAlready discussed in context of memory managementShort-term (most frequent decision)Which process should execute next?Focus of this lessonI/O – next lesson3Short-Term SchedulingPerformed by part of kernel referred to as dispatcherInvoked in response toTimer interruptsI/O interruptsSystem callsSignals (e.g. from semaphores)Some long-term and medium-term scheduling events4Short-Term Scheduling CriteriaPerformance RelatedOtherUser OrientedTurnaround timeResponse timeDeadlinesPredictabilitySystem OrientedThroughputProcessor utilizationFairnessEnforcing prioritiesBalancing resources5Short Term Scheduling PoliciesCan be described in terms of Selection functionDecision mode6Selection FunctionDetermines which of the ready processes to executeExample inputs:s: total service time required by the processe: time spent so far in executionw: time spent so far in system (executing and waiting)May also consider resource management or other execution characteristics of processes7Decision ModeSpecifies times at which selection function is invokedNonpreemptiveSelection function used only when running process Blocks for I/O Requests OS serviceTerminatesPreemptiveSelection function is used at other timesTimer interruptsProcess admission8Process Scheduling Example9FCFS/FIFO Policy0510 15 20ABCDE10NonpreemptiveAlways select the process that has been in the ready queue the longest0510 15 20ABCDE11Round Robin PolicyPreemptive -- processes run for a time-slice or quantumAlways select the process that has been in the ready queue the longestVirtual Round Robin PolicyI/O-bound processes typically do not use a complete quantumPut processes with pending I/O in auxiliary queue, remember how much time remains in their time sliceGive preference to processes in auxiliary queueAllow to run for remainder of time slice1213Shortest Process Next Policy0510 15 20ABCDE14Nonpreemptive Always select process with shortest estimated processing timeShortest Remaining Time Policy0510 15 20ABCDE15Preemptive When a new process enters the system, or when the running process leaves the running state Select process with shortest estimated remaining processing timeHRRN Policy16ABCDE0510 15 20HRRN = Highest Response Ratio NextNonpreemptiveAlways select the process that has the highest value ofss e) - (w ratio ResponseMulti-Level Feedback PolicyPreemptive based on time quantumMaintain a ready queue for each priorityWhen a process is preempted, move it to a lower priority queueNote: If there are no processes waiting, don’t preempt current processWith quantum = 1, long processes will have very large turnaround timeGive processes from queue RQi quantum = 2i1718Quantum = 1190510 15 20ABCDEQuantum =


View Full Document

Rose-Hulman CSSE 332 - Uniprocessor Scheduling

Download Uniprocessor Scheduling
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Uniprocessor Scheduling and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Uniprocessor Scheduling 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?