Workshop2 Section2 Flashcards

1
Q

What do long, medium and short term scheduling deal with?

A

Long: let’s new processes in and controls multi-programming. Medium: swaps processes between main memory and disk, short: decides which process taken from ready queue and placed next in cpu.

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

Long term: 3 characteristics?

A

Divided which process to admit. Makes coarse grained decisions. Executed infrequently.

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

Medium term: 3 characteristics?

A

Decides which jobs compete for processor. Acts as buffer between long and short. Executed in response to system load.

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

Short term: characteristics?

A

Decides which job to execute next. Makes fine grained decisions. Executed frequently.

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

What are four short term scheduling criteria?

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
6
Q

How do i/o bound and cpu bound processes differ?

A

I/O bound: short time spent in cpu before being blocked, waiting for I/O device.
CPU bound: they gig the CPU. Little I/O.

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

Give examples of user and system oriented scheduling criteria (short term).

A

User: turnaround time, response time.
System: CPU utilization, fairness, throughout.

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

Short term scheduling priorities, 4:

A

Always choose higher priority over lower, lower priority may suffer starvation, use multiple ready queues to represent each level of priority, allow a process to change priority based on age or execution history.

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

Name 5 processor scheduling algorithms.

A

Fcfs(first come first served), spn(shortest process next), srt(shortest remaining time), rr(round robin), mlf(multilevel feedback).

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

Which processor algorithms are preemptive? Which non preemptive?

A

Non=fcfs,spn.
Preemptive=srt,rr,mlf.

Pre-emotive means processes can be interrupted and resumed at a later time.

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

What are the six pbjectives of processor scheduling?

A

Maximize throughput (execute as many processes as possible), minimize response time, minimize turnaround time, minimize waiting time, maximize cpu, ensure fairness.

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