Week 9 - Scheduling Flashcards
What is the main advantage of first come first served scheduling?
Easy to implement
What is the main disadvantage of first come first served scheduling?
CPU intensive process can cause a long waiting time
What is the main advantage of round robin scheduling?
Resources shared equally
What is the main disadvantage of round robin scheduling?
Difficult to get the right time quantum(Too short means too much time wasted on context switches, too long and one process hogs the CPU)
What is the main advantage of priority scheduling?
Ensures quick response time to high priority processes
What is the main disadvantage of priority scheduling?
Low priority processes can have long wait times.
How do you prevent low priority processes never being executed in priority scheduling?
Aging - Increasing the priority of waiting processes over time.
What are the two main categories of processes?
I/O bound - requires many short CPU bursts
CPU bound - requires few very long CPU bursts
What are the 5 criteria for successful scheduling?
CPU utilisation
Throughput – Number of processes completed within a given time
Turnaround time – Time it takes for each process to execute
Waiting time – Amount of time spent in the ready-queue
Response time – time between submission requests and production of first response