Lecture 9: Operating System Examples and Case Studies - Scheduling Flashcards

1
Q

Briefly describe Solaris’s history.

A

Unix operating system developed by Sun, acquired by Oracle. Solaris is Open-Source.

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

What CPU Scheduling algorithm does the Solaris operating system use?

A

Priority-based Scheduling among Multi-Level Queues where each Queue is called a “class”

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

List the classes of Solaris’s queues that processes can be categorized into along with their priority numbers.

A

1) Interrupt class (160-169)
2) Real time class (100-159)
3) System class (Kernel threads) (60-99)
4) Fair Share (0-59 for 4-7)
5) Fixed Priority
6) Timeshare
7) Interactive

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

What CPU Scheduling algorithm does Windows utilize?

A

Multilevel Queues that operate via Priority Scheduling to manage its two queues and Round Robin algorithm to manage scheduling in each queue

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

What are the classes of processes in Windows MLQ long with their priority number?

A

1) User Class (1-15)

2) Real Time Class (16-21)

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

Linux dominates which platforms?

A

Servers and mobile (Android)

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

What CPU Scheduling algorithm does Linux utilize?

A

MLQ with 2 queues:

1) Real-time Class
2) Completely Fair Scheduler (CFS) that tries to guarantee fairness (CPU usage). Uses nice values.

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

What is the range of nice values?

A

-20 to 19

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

What is the affects of assigning a non-zero nice value? a zero nice value?

A

Non-zero NV: each incremental difference is equivalent to 10% change in processes CPU time in an INVERSE FASHION. Zero: Actual Run Time

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

Describe how Completely Fair Scheduling works (once Nice Values are assigned to processes).

A
  • Pick processes with the weighted MINIMUM runtime so far (ie. the smallest virtual runtime so far)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

High nice values result in:

A

Less CPU time

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

Low nice values result in:

A

More CPU time

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

Assume a process has an Actual Run Time of 200 ms.

1) Nice value assigned is 0 - what is VRT?
2) Nice value assigned is less than zero - what is VRT?
3) Nice value assigned is greater than 0 - what is VRT?

A

1) 200ms
2) Less than 200ms
3) More than 200ms

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