YEAR 1 CO1 WEEK 25 SCHEDULING Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the OS of a multitasking computer expected to do and how is it made possible?

A

The OS of a multitasking computer is expected to run many programs in memory without any noticeable delay.
Made possible by scheduling which is the task of allocating CPU processing time amongst all running programs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Describe Round Robin scheduling algorithm.

A

Each process given equal amount of time being processed.
Queue made holding all processes that are ready to be run. Each loaded into main memory in turn.
Each process given set amount of time to use.
If completed within time next process loaded immediately otherwise put back in queue to wait for another turn.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

State advantages and disadvantages of Round Robin.

A

Advantages:
Easy to implement
Disadvantages:
Not take account of priority.
Not take account that some processes much longer than others.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe First Come First Server scheduling algorithm.

A

Lines up all processes ready to run in First In First Out queue.
Allows processes to run to completion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

State advantages and disadvantages of First Come First Serve.

A

Advantages:
Simple algorithm to implement.
Disadvantages:
Not take into account of priority.
Not consider some processes longer than others.
Once job started prevents other jobs from being processed until its complete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Describe Shortest Job First Scheduling Algorithm.

A

Processes arranged in queue by how much time (FDE cycles) each process needs to run to completion.
If newer process comes along scheduler will work out processing time and slot in appropriate point in queue.
If shorter than current process running program interrupted and shorter one runs immediately.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

State advantages and disadvantages of Shortest Job First Algorithm.

A

Advantages:
Ensures short jobs aren’t kept waiting for long processes.
Minimises average time process takes to complete.
Disadvantages:
Not take into account priority.
Longer jobs that are nearly done still interrupted by shorter jobs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe Shortest Time Remaining Scheduling Algorithm.

A

For Shortest Job algorithm 1000 cycle job still be interrupted by 700 cycle as total length shorter than old one.

Fixed by ordering jobs by how much time they have remaining.
Jobs only interrupted if new process shorter than time remaining before completion.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

State advantages and disadvantages of Shortest Time Remaining Algorithm.

A

Advantages:
Allows short processes to be handled very quickly.
Disadvantages:
Not take into priority.
Long jobs may never be completed if short jobs keep jumping the queue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Describe Multi-Level Feedback Queues Scheduling Algorithms.

A

Maintains a number of queues with different priority levels.
Each job given priority by scheduler and then sorted into relevant queue.
High priority queue completed first then each of the lower queues in turn.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

State advantages and disadvantages of Multi-Level Feedback Queues.

A

Advantages:
Takes in account of priority.
Disadvantages:
Complex to implement.
Low priority may take extremely long time to complete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly