Chapter 5: CPU scheduling Flashcards

1
Q

CPU util, throughput, turnaround time, waiting time, response time

A

CPU utilization – keep the CPU as busy as possible
Throughput – # of processes that complete their execution per time unit
Turnaround time – amount of time to execute a particular process
Waiting time – amount of time a process has been waiting in the ready queue
Response time – amount of time it takes from when a request was submitted until the first response is produced, not output (for time-sharing environment)

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

What is starvation and how do we fix it

A

Problem  Starvation – low priority processes may never execute

Solution  Aging – as time progresses increase the priority of the process

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

Asymetric multiprocessing vs symmetric

A

Asymmetric multiprocessing – only one processor accesses the system data structures, alleviating the need for data sharing
Symmetric multiprocessing (SMP) – each processor is self-scheduling, all processes in common ready queue, or each has its own private queue of ready processes

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

cpu util equation

A

1- (%io wait)^n = cpu util

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

Advantage and disadvantage of FCFS

A

simplest scheduling algorithm, but it can cause short processes to wait for very long processes

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

Advantage and disadvantage of SJF

A

providing the shortest average waiting time.
Implementing SJF scheduling is difficult, however, because predicting the length of the next CPU burst is difficult.

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

What is a multilevel queue

A

Multilevel queue scheduling partitions processes into several separate
queues arranged by priority, and the scheduler executes the processes in
the highest-priority queue. Different scheduling algorithms may be used
in each queue.

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