MLFQ Qs Flashcards

Chapter 8 of Operating Systems : Three Easy Pieces

1
Q

What is the primary goal of the MLFQ scheduling algorithm?

priorities

A

prioritizing interactive processes while ensuring fairness and responsiveness to all processes

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

In an MLFQ system, where is a new process initially placed?

A

in the highest-priority queue, assuming it might be interactive and deserving of fast response time

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

How does MLFQ prevent starvation of low-priority processes?

A

priority boosts, all processes are periodically moved to higher-priority queues

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

What happens to a process in MLFQ as it uses up its time quanta without completing?

A

it is demoted to a lower-priority queue, assuming it is more CPU-bound

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

What is a key characteristic of MLFQ?

A

processes are moved between queues based on their behavior, making it a dynamic and adaptive scheduler

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

How does MLFQ typically handle interactive(I/O-bound) processes compared to CPU-bound processes?

A

interactive processes are prioritized in higher-priority queues, ensuring faster response times, while CPU-bound processes are gradually moved to lower-priority queues

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

What is the purpose of the “gaming prevention” mechanism in MLFQ?

A

prevents processes from manipulating their priority by intentionally yielding the CPU before their time quanta is fully used

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

In a typical MLFQ implementation, how does the time quanta change as priority decreases?

A

the time quanta increases, allowing CPU-bound processes more time to run in the lower-priority queues without frequent context switching

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

What happens during a priority boost in MLFQ?

A

all processes are moved to the highest-priority queue, preventing starvation

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

How does MLFQ handle long-running CPU-bound processes over time?

A

gradually demoted to lower-priority queues where they’re given longer time quanta but lower scheduling priority

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

What is a potential disadvantage of MLFQ compared to similar scheduling algorithms?

A

its complexity in implementation and tuning; the need to set parameters like number of queues, time quanta for each queue, priority boost intervals

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