Process Scheduling Flashcards
what is a scheduler
decides which process to run. approach depends on the processing mode
what processing modes are there and what scheduling approach will be taken
interactive- round robin
real time- minimises latency by relying on priorities. Hard and soft constraints.
batch- allow each job to complete before going on to the next
what are the process states
running
ready
blocked
what principles does a scheduler combine
process states
linked lists
time slicing
sleeping
what is context switching
a running process is paused and evicted from the processor.
performed by the scheduler.
- save the process registers within PCB
- choose the new process
for process switch only: - change memory management page tables and flush TLB
- flush caches
what types of process priority are there
constant and dynamic.
what is priority inversion
when a high priority task is prevented from running by a low priority one
what is sleep
the unix name for a blocked process, waiting for the time. queue until a timer interrupt.
what are hard and soft requirements in real time processing
hard- safety critical, where failure would result in catastrophe
soft- real time requirement but not critical.
what is different about real time scheduling
the policy is steered away from time slicing and towards pre-emption. ready queue stored by priority