Process Scheduling Flashcards

1
Q

what is a scheduler

A

decides which process to run. approach depends on the processing mode

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

what processing modes are there and what scheduling approach will be taken

A

interactive- round robin

real time- minimises latency by relying on priorities. Hard and soft constraints.

batch- allow each job to complete before going on to the next

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

what are the process states

A

running

ready

blocked

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

what principles does a scheduler combine

A

process states

linked lists

time slicing

sleeping

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

what is context switching

A

a running process is paused and evicted from the processor.

performed by the scheduler.

  1. save the process registers within PCB
  2. choose the new process
    for process switch only:
  3. change memory management page tables and flush TLB
  4. flush caches
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what types of process priority are there

A

constant and dynamic.

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

what is priority inversion

A

when a high priority task is prevented from running by a low priority one

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

what is sleep

A

the unix name for a blocked process, waiting for the time. queue until a timer interrupt.

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

what are hard and soft requirements in real time processing

A

hard- safety critical, where failure would result in catastrophe

soft- real time requirement but not critical.

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

what is different about real time scheduling

A

the policy is steered away from time slicing and towards pre-emption. ready queue stored by priority

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