Chapter 5: CPU scheduling Flashcards
CPU util, throughput, turnaround time, waiting time, response time
CPU utilization – keep the CPU as busy as possible
Throughput – # of processes that complete their execution per time unit
Turnaround time – amount of time to execute a particular process
Waiting time – amount of time a process has been waiting in the ready queue
Response time – amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)
What is starvation and how do we fix it
Problem Starvation – low priority processes may never execute
Solution Aging – as time progresses increase the priority of the process
Asymetric multiprocessing vs symmetric
Asymmetric multiprocessing – only one processor accesses the system data structures, alleviating the need for data sharing
Symmetric multiprocessing (SMP) – each processor is self-scheduling, all processes in common ready queue, or each has its own private queue of ready processes
cpu util equation
1- (%io wait)^n = cpu util
Advantage and disadvantage of FCFS
simplest scheduling algorithm, but it can cause short processes to wait for very long processes
Advantage and disadvantage of SJF
providing the shortest average waiting time.
Implementing SJF scheduling is difficult, however, because predicting the length of the next CPU burst is difficult.
What is a multilevel queue
Multilevel queue scheduling partitions processes into several separate
queues arranged by priority, and the scheduler executes the processes in
the highest-priority queue. Different scheduling algorithms may be used
in each queue.