Scheduling Flashcards

1
Q

Round Robin

A

A pre-emptive scheduling algorithm designed for time sharing systems.
The ready (to run) queue is treated as a circular queue.
A small execution time interval is defined as the time slice.

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

Shortest Job First

A

A type of scheduling algorithm where the queue is sorted by expected execution time. New jobs are added accordingly to the queue.

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

First Come, First Served (FCFS)

A

The first job to enter the ready queue is the first to enter the running state.

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

Shortest Remaining Time

A

A type of scheduling algorithm where the queue is sorted by expected execution time. New and pre-empted jobs are added accordingly to the queue.

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

Multi-Level Feedback Queue (MLFQ)

A

A scheduling algorithm that deals with tasks based on a set of priorities and rules across different queues. Processes may get promoted, demoted or stay at the same level.

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

Preemptive scheduling algorithms

A

Round Robin, Shortest Remaining Time and MLFQ

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

Non preemptive scheduling algorithms

A

First Come First Served, Shortest Job First

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

Advantages of First Come First Served

A

*Simple to implement with a queue data structure.

*Works well with processes which need shorter amounts of CPU time

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

Disadvantages of First Come First Served

A

*Longer processes may monopolise the CPU.
*User may experience a lack of responsiveness.
*Does not maximize throughput if there are longer processes.

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

Advantages of Round Robin

A

*Improves the throughput of processes and prevents longer processes from monopolising the CPU.

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

Disadvantages of Round Robin

A

*Swapping processes has an admin cost which can slow down if the time slice used is too small.

*User may experience a lack of responsiveness if there are a large number of processes.

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

Advantages of Shortest Job First

A

*Prioritises processes using slower computer resources.

*Prioritises GUI operations.

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

Disadvantages of Shortest Job First

A

*May suffer from starvation for longer processes.
*Not as fair as other scheduling algorithms.

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

Advantages of Shortest Remaining Time

A

*Improves the throughput of processes.
*Longer processes will increase in priority over time.

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

Disadvantages of Shortest Remaining Time

A

*May suffer from starvation for longer processes, but is mitigated.
*Not as fair as other scheduling algorithms.

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

Advantages of MLFQ

A

*Prioritises processes using slower computer resources by promoting these processes.
*Prioritises GUI operations as they will always enter at level 0.

17
Q

Disadvantages of MLFQ

A

*Longer, poorly coded, processes may suffer from starvation.