Week 4 Flashcards

1
Q

First Come First Serve

A

Oldest and simplest method. Non-preemptive method. Good for large batch systems that need to be as busy as possible. Disadvantages: large average wait time, variance in throughput is large, poor for reactivity. The convoy effect is prominent with this solution.

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

Convoy Effect

A

CPU job hogs CPU and many I/O jobs get queued up behind it.

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

Shortest Job First

A

Scheduling order based on amount of time the burst will take. Queue is maintained in order upon entrance. Non-preemptive method. Convoy effect still applies and its difficult to know how long processes will take.

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

Exponential average

A

Method used to estimate CPU burst lengths. Check picture in notes. Alpha is used to weight current and previous behavior. If alpha is low -> past behavior affects more and estimate moves slower. I alpha is high then most recent length matters more and behavior is fast to change. How alpha is chosen depends upon the system. Alpha*last length + (1-alpha) * previous estimate = current estimate.

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

Disadvantages of using exponential average technique

A

Predicted time always lags the real time.

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

Advantage of using exponential average technique

A

If the process spends a long time on the same size burst, the average will approach the true value.

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

Shortest Remaining Time First

A

Preemptive version of SJF. After an interrupt occurs, calculate remaining time on process. If process in queue has shorter burst time, put it on scheduler.

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

Starvation

A

Overcommitting resources to a CPU with too few resources

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

Round Robin

A

FCFS with preemption. Designed for time sharing systems.

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

Quantam

A

Maximum time the process gets to fun. A large enough quanta just become first come first serve. Small quanta is inefficient and will require lots of overhead

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

Hyper exponential distribution with quanta

A

Ideally 80% of bursts should be shorter than q

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

Priority Scheduling

A

Each process has a priority. Highest priority gets placed on CPU first and ready queue gets sorted based on this priority. Processes with same priority become first come first serve. Can be preemptive or non preemptive.

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

Multilevel queues

A

Multiple queues with different purposes and different priorities (I/O queue is higher than experimental). Each queue will have its own scheduling algorithm. Scheduling between queues is fixed priority preemptive scheduling sometimes with quanta.

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

Multi Level feedback.

A

Processes moving between queues. Processes that use entire quanta every time are bumped down and vice versa. Ideally, should sit on a queue that it sometimes exceeds but mostly doesn’t. Give small quanta to lower priority that guarantees it will run just not for long.

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

Parameters for multi level feedback

A

Determine when to upgrade process and to downgrade. Previous behavior of programs decides initial queue placement.

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