Chapter 6 - CPU Scheduling Flashcards

1
Q

What does process execution consist of?

A

A cycle of CPU execution and I/O wait

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

When do CPU scheduling decisions take place?

A

Switches from…

1) Running to waiting
2) Running to ready
3) Waiting to ready
4) When a process terminates

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

Which situations lead to preemptive CPU scheduling decisions?

A

Process switches from running or waiting to ready

Switching from running to ready and termination are non-preemptive

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

What is a dispatcher module?

A

Give control of the CPU to the process selected by the short-term scheduler

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

What is dispatcher latency?

A

The time it takes for the dispatcher to stop one process and start another

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

How are scheduling algorithms chosen?

A

Based on optimization criteria like throughput and turnaround time

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

What are some scheduling algorithms?

A

FCFS, SJF, Shortest-Remaining-Time-First, Round Robin, Priority

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

What is the Round Robin algorithm?

A

Scheduling algorithm that uses small time quantums that can result in large amounts of context switches

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

What can Priority Scheduling result in?

A

Starvation, which can be solved by aging a process (as time progresses increase the priority)

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