Scheduling Flashcards
Scheduler
A program that manages the processing time different instructions have
Pre - emptive
Can respond to a changing circumstance
Can interrupt jobs for other jobs
First come first served
Creates queue for jobs in order from first to last
Order of these jobs can not be changed
Good for jobs which require no interactivity
Non- pre-emptive
Pros / cons of First come first served
Pros:
- Simple
- No need to estimate job times
Cons:
- No real time response
- Can have high wait time
Shortest job first
Estimates job length
Orders jobs from shortest to longest
Non Pre-emptive
Pros / Cons of Shortest job first
Pros:
- minimises average wait time
Cons:
- Have to estimate job length
- Larger jobs have higher wait time
- Non pre-emptive
- Not simple
Shortest remaining time
Estimates job length
Places jobs in order of shortest remaining time first
A new job can be added and change the order
Pre - emptive
Pros / Cons of shortest remaining time
Pros:
- Pre - emptive
- Shortens average wait time
Cons:
- Have to estimate job length
- Long jobs can have higher wait time
- Complex
Round robin
Each job is allocated a quantum of processing time
If job is not completed in the quantum it will loop to the back of the queue
This will repeat untill job is completed
Pros / Cons of round robin
Pros:
- Pre emptive
- Don’t need to estimate job length
- Fair in allocating processor time
- Has interactivity
Cons:
- Complex
- If a job is not finished in the first quantum , its data will have to be stored in memory , this is inefficient
Multi-level feedback
Uses many other algorithms in combination
Pros / Cons of Multi-level feedback
Pros:
- Real time response
- Can give priority to a job
Cons:
- Complex
- Expensive
- Lots of memory