CPU Scheduling Flashcards
Basis for multiprogrammed OS which maximises CPU utilization
CPU scheduling
Process execution which consists of a cycle of CPU execution and I/O wait
CPU burst (MAIN CONCERN) then I/O burst
CPU - I/O Burst Cycle
This selects from among the processes in the ready queue and allocates one of them in the CPU
Short term scheduler
CPU scheduling process takes place when a process
- switch from running to waiting
- switch from running to ready
- switch from waiting to ready
- terminate
(Nonpreemptive)
- consider access to shared data
- consider preemption while in kernel mode
- consider interrupts during crucial OS activities
(Preemptive)
Gives control of the CPU to the process selected by the short term scheduler which involves
- switching contexts
- switching to user mode
- jumping to proper location in the user program to restart
Dispatcher module
Time it takes for the dispatcher to stop one process and start another running
Dispatch latency
Scheduling criteria which keeps the cpu busy at all times
CPU utilization
Scheduling criteria which tracks the number of processes that complete their execution per time unit
Throughput
Scheduling criteria which is the amount of time for a process to execute a particular process
Turnaround time
Scheduling criteria which is the amount of time process has been waiting in the ready queue
Waiting time
Scheduling criteria which is the amount it takes from when a request has been passed until the first response is produced
Response time
A short process behind a long process
Convoy effect
Ho to determine length of next cpu burst
Exponential averaging
What is the problem of priority scheduling wherein LOW PRIORITY PROCESS MAY NEVER EXECUTE
Starvation
Solution to the problem of priority scheduling wherein as time progresses, increase the prirority of the process
Aging