chapter 9 - uniprocessor scheduling Flashcards

1
Q

What is the goal of scheduling?

A

execute processes in a way to meet system objectives like response time, throughput, and processor efficiency

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

what are the types of scheduling?

A

long-term, medium-term, short-term

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

what is long-term scheduling?

A

determines which programs to admit to the system (to the ready queue). controls the degree of multiprogramming

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

what are the 2 decisions of long-term scheduling?

A
  1. whether to admit a new process to the system
  2. which process to admit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what is medium-term scheduling?

A

once processes are admitted, the degree of multiprogramming can be further managed by this scheduler.

blocked processes can be swapped out of memory to make room for other processes in order to increase CPU utilization

processes can be activated when CPU is underutilized

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

what is short-term scheduling?

A

determines which process is going to run next.

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

what is another name for short-term scheduling?

A

the dispatcher

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

what events is the dispatcher invoked on that may lead to choosing another process for execution?

A

clock interrupts
i/o interrupts
os calls and traps
signals

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

what is the short-term scheduling criteria?

A

user oriented, performance related
user oriented, other
system oriented, performance related
system oriented, other

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

what is user-oriented criteria (short-term scheduling)?

A

things the user sees

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

what is system-oriented criteria (short-term scheduling)?

A

system concerns

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

what is performance-related criteria (short-term scheduling)?

A

quantitative

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

what is user oriented, performance related criteria?

A

turnaround time - time between submission and completion

response time - time between request and response

deadlines - process completion deadlines

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

what is user oriented, other (not performance related) criteria?

A

predictability - execution time not affected by system load

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

what is system oriented, performance related criteria?

A

Throughput: number of processes completed per unit of time.

Processor utilization: percent of time processor is busy.

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

what is system oriented, other (not performance related) criteria?

A

Fairness: processes treated same, no starvation.

Enforcing priorities: favor high-priority processes.

Balancing resources: keep resources busy.

17
Q

what are the short-term scheduler’s scheduling policies?

A

selection function: decides which process runs next

decision mode: specifies when to run the selection function

18
Q

what are the 2 approaches in the decision mode (short-term scheduler policy)

A

Non-preemptive: runs until it terminates or is blocked

Preemptive: moves between running and ready queue, such as when a timeout occurs. Prevents one process from monopolizing the CPU.

19
Q

what are the 6 scheduling algorithms?

A

First-come-first-served
Round-robin
Shortest process next
Shortest remaining time
Highest response ratio next
Feedback

20
Q

which scheduling algos are non-preemptive?

A

FCFS, shortest process next, highest response ratio next

21
Q

which scheduling algos are preemptive?

A

round robin, shortest remaining time, feedback

22
Q

what is the effect of the first come, first serve algorithm?

A

penalizes short and I/O bound processes

23
Q

what is the effect of the round robin algorithm?

A

fair treatment

24
Q

what is the effect of the shortest process next algorithm?

A

penalizes long processes

25
Q

what is the effect of the shortest remaining time algorithm?

A

penalizes long processes

26
Q

what is the effect of the highest response ratio next algorithm?

A

good balance

27
Q

what is the effect of the feedback algorithm?

A

favors I/O bound and short processes

28
Q

which scheduling algorithms can have starvation?

A

shortest process next, shortest remaining time, feedback