Chapter 6 CPU Scheduling Flashcards

1
Q

What System chooses which process runs next and in what order ?

A

OS

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

What is CPU Burst ?

A

Time a process is using CPU for execution

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

What is I/O Burst ?

A

TIme a process is waiting for I/O

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

What component of OS actually does the scheduling ?

A

Scheduler

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

What does the dispathcer do ?

A

A module that gives CPU control to the process selected by the short term scheduler.

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

What is the difference between preemptive and non-preemptive scheduling algorithms ?

A

nonpreemptive = Once process is running, it cannot be interrupted and must be completed by the CPU

preemtptive = can be interrupted when running

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

How does the CPU scheduler use scheduling algorithms ?

A

Uses them to queue processes

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

Name 3 nonpreemtptive scheduling algorithms.

A

FCFS, SJF, Priority que

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

Name 3 preemtptive scheduling algorithms.

A

Round Robin - like FCFS, but w time constraint
SRT - like SJF but preemptive
Preemptive priority

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

What is starvation ?

A

lower priority processes may never be chosen from queue

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

What algs are suceptible to starvation ?

A

Priority based algs - SJF, SRT, both Priorities algs

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

What does the short term scheduler do ?

A

Selects process from ready queue to execute next and allocates CPU

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

What does the long term scheduler do ?

A

Selects which processes enter ready queue

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

What does the medium term scheduler do ?

A

Performs swaps and performs context switching

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

What is the difference between asymmetric and symmetric multiprocessing ?

A
  • asymmetric multiprocessing, each processor is assigned a specific task, with (the master) processor controlling worker processors
  • In symmetric multiprocessing, each processor runs an identical copy of the operating system and can perform all tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
A