Processor Management Flashcards

1
Q

What is processor scheduling?

A

When a process is created it is dispatched ( dunno if its right) then a scheduling decision is made that inserts a process in a priority queue

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

What are the scheduling algorithms?

A

First come first served
Round robin
Shortest process next
Multilevel queuing

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

How does the first come first served scheduling algorithm work?

A

Allocates a processor on basis of creation time(super computer)

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

How does the round robin scheduling algorithm work?

A

Shares the processor on base of equality

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

How does the shortest process next scheduling algorithm work?

A

Shares the processor on the basis of the shortest predicted execution time

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

shortest process next scheduling algorithm flaws ?

A

Short processes may take a lot of time all together

It depends on predicting execution but its difficult to predict input dependent processes

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

How does the multilevel queuing scheduling algorithm work?

A

Shares the processor on basis of execution history.

So first batch processes that need no input or output

Then interface processes that interact with the user

Then normal processes

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

What type of scheduling is best suited for a system oriented process and a user oriented process?

A

System oriented = first come first served

User oriented = shortest process next

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

What is load balancing and why is it necessary?

A

When an algorithm has a process to a different processor so it is less loaded.

It has become necessary for energy and power consumption

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

How does the Linux Completely Fair Scheduler (CFS) work?

A

The Linux Completely Fair Scheduler (CFS) determines the need of a process for more processor time based on the (little) processor time that it has already had.

The Linux scheduler attempts to keep a process on the same processor for as long as practical.

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

when is forced processor affinity useful?

A

forcing processor affinity with taskset is useful only in certain (licensed) applications

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