Chapter 6 Flashcards
What is a Short-Term scheduler?
It selects from among the processes in ready queue, and allocates the CPU to one of them.
When CPU scheduling may take place?
- Switches from running to waiting state
- Switches from running to ready state.
- Switches from waiting to ready
- Terminates
Scheduling under 1 and 4 is?
Nonpreemtive
When is scheduling preemptive?
When scheduling is not 1 and 4
What is a Dispatcher?
Dispatches module gives control of the CPU to the process selected by the short-term scheduler
What involves Dispatcher?
Switching context
Switching to user mode
Jumping to the proper location in the user program to restart that program
What is Dispatch Latency?
Time it takes for the dispatcher to stop one process and start another one
List Scheduling Criteria?
CPU Utilization Throughput Turnaround time Waiting time Response time
What is CPU Utilization?
Keep the CPU as busy as possible
What is Throughput?
of processes that complete their execution per time unit
What is Turnaround Time?
Amount of time to execute a particular process
What is Waiting Time?
Amount of time a process has been waiting in the ready queue
What is Response Time?
Amount of time it takes from when a request was submitted until the first response is produced, not output.
Scheduling Algorithm Optimization Criteria?
Max CPU utilization Max throughput Min turnaround time Min waiting time Min response time
What is FCFS Scheduling?
First-Come, First Served