Processor Scheduling Flashcards
How is First Come First Served Scheduling Implemented?
Allocates processors base don creation time of process. All processes are executed from start to finish.
What are the Pros of First in First out?
Minimises process switches, every process will eventually get processor time
What are the cons of First in First out?
Average waiting time is long
How is Round Robin Scheduling Implemented?
First Come First Serve but with a limit for given to how long a process can have in the processor in one go (Time Quantum). When this has been reached it goes to the back of the queue until it comes back around
How is priority implemented in Round Robin Scheduling?
New processes gain priority in the Queue over processes that have previously had time on the processor.
What are the Pros of Round Robin Scheduling?
Distributes Resources in a “fair” manner, one process does not take all the CPU time.
A quick process can pass relatively quickly.
What are the Cons of round Robin Scheduling?
Long Average waiting time when processes require multiple time quanta. Performance depends heavily on length of time Quantum.
How is Shortest Process Next Scheduling Implemented?
Shares the processor based on process execution time. Shortest goes first, slowest goes last.
What are the two types of Shortest Process Next Scheduling?
Preemptive and Nonpreemptive
What is the different between preemptive and Nonpreemeptive scheduling?
Preemptive interrupts processes while they are being executed in case of a shorted process starting. Nonpreemeptive doesn’t allow the interruption of current process.
What are the Pros of Shortest Process Next Scheduling?
Gives minimum average waiting time for a given set of processes assuming all execution times are estimated prefectly.
What are the Cons of Shortest Process Next Scheduling?
Execution time has to be estimated, estimates are not going to be perfect. Longer processes may have waited a long time if there is a constant influx of short processes.
What is multilevel queueing?
Different types of processes are queued in their own queue and the appropriate algorithm is used for each queue.
What three types are processes and the queues split into?
Interactive processes (interact with I/O), normal processes (system services), Batch processes (processes with I/O devices, pure number crunching)
How is priority split between queues?
Fixed Priority scheduling, time slicing