Scheduling Flashcards
First job to arrive is ran. Arriving job put onto queue and ran in order of arrival. If running process blocks, switch to next process
First-Come-First-Serve
Given a queue of jobs at some time, pick job that runs for shortest amount of time. Optimal solution
Shortest job first
Pick process with least remaining runtime. If new job arrives with shorter runtime, switch to it
Shortest remaining time next
Each process assigned a time interval, called quantum, to run in. Each quantum switches the current process
Round robin
Quantums can be too short, causing excessive switching, or too long, wasting extra time
Round robin issues
Run each process with highest priority first. RR each quantum if shared priority.
Priority scheduling
Use weighted average to estimate a job runtime.
Shortest process next
aT_0 + (1 - a)T_1
Shortest process next weight average
Requires knowing past behaviors of running
Shortest process next
Assign higher number of tickets to process with higher priority
Lottery scheduling