Scheduling Flashcards

1
Q

What is long term scheduling?

A

decides when a process should enter the ready state to start competing for cpu

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

what is short term scheduling?

A

decides which of the ready processes should run next on the cpu

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

what is “real time in system” in terms of short term scheduling?

A

the total time since a process has entered the ready list

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

which form of scheduling to arrival and departure times play a role?

A

long term

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

what is a batch process?

A

performs longish running repetitive tasks without human intervention, like payroll processing on a certain day of the month

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

what is average turnaround time?

A

average over a set of processes arrival and departure times

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

in a very large process queue, Round Robin scheduling can look like __________

A

FIFO

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

what is multilevel scheduling?

A

when there are separate queues that hold PRIORITY…the higher queues execute with higher priority. inside of each queue round robin is used

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

what is a real time process?

A

a process that is characterized by continual input. something like video or audio and the computer MUST respond to and handle this

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

what is rate monotonic algorithm?

A

schedules processes according to “period” which is to say, the process with the highest frequency of running gets prioritized highest (is preemptive)

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

what is earliest deadline first algorithm?

A

schedules task according to the deadline of the task. the closer the deadline the higher priority (is preemptive)

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

what is the difference between asymmetric multiprocessing and symmetric multiprocessing?

A

in asymmetric, 1 CPU handles all the scheduling, I/O and other things while the other CPUs execute only user code. but in a symmetric setup, they all split the load equally

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

what is memory stall?

A

the time a CPU takes waiting for memory/data to become available

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

how do multithreaded cores solve memory stall?

A

while one thread is waiting for memory, the other can continue processing

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

what is push and pull migration?

A

a form of load balancing. push means that a task checks the processor load and redistributes to other CPUs…whereas pull means a CPU core may go get tasks to process if it’s queue is empty

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

what is processor affinity?

A

when a process relies on cache on a specific CPU and thus due to the cost of invalidating the cache generally stays running on the same CPU

17
Q

what is the difference between coarse-grained and fine-grained hardware multithreading?

A

course-grained: threads execute until a long-latency event occurs like memory lookup

fine grained: fine-grained makes the switch much more regularly

18
Q

what is the difference between hard and soft affinity?

A

hard affinity means that the OS guarantees that the process will not change CPUs…soft affinity makes no guarantees

19
Q

what is the difference between hard and soft real time systems?

A

soft provides no guarantee for critical real time processes whereas hard does

20
Q

what is admission-control?

A

the scheduler may not even allow a process to start if it cannot guranatee that it will be completed by it’s deadline

21
Q

In Little’s formula, λ, represents the ____.

A

average arrival rate for new processes in the queue