7. CPU Scheduling Flashcards

1
Q

What is a workload

A

Processes running in a system

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

What is a job

A

A process

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

What is turnaround time

A

Time of completion minus time of arrival

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

What is fairness

A

The degree of which all processes will have an equal opportunity to use the CPU and memory.

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

What is the first in first out (FIFO) scheduling algorithm?

A

It is a non-preemptive algorithm that runs the first job that comes first.

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

What is average turnaround time?

A

The sum of turnaround time divided by the number of jobs

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

What is the convoy effect?

A

It is when a number of relatively-short jobs get queued up behind a long job.

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

What is the shortest job first (SJF) scheduling algorithm?

A

It is a non-preemptive algorithm that runs the shortest job first.

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

What is the shortest time-to-completion first (STCF) scheduling algorithm?

A

It is a preemptive algorithm that prioritises the job that has the least time left to completion.

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

What is response time?

A

Time of first run minus time of first arrival

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

What is round robin?

A

It is a preemptive algorithm that divides each process to run for a time slice (quantum). Once the time slice is used, it will switch to the next process.

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

Which algorithms are good for turnaround time and response time respectively?

A

FIFO: Not good for both
RR: Good for response time, but not good for turnaround time
SJF: Good for turnaround time, but not good for response time
STCF: Good for turnaround time, but not good for response time

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

What happens when an I/O request issued in scheduling?

A

The other processes will get to run while the I/O is being executed. The process that will be scheduled next depends on the scheduling algorithm.

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