8. Scheduling: MLFQ Flashcards

1
Q

What is the problem that MLFQ tries to solve?

A

How to optimize for both turnaround and response time without knowing a job length.

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

What is principle behind MLFQ?

A

MLFQ has a number of distinct queue and scheduler runs jobs that are on higher queue first.
Scheduler varies processes’ priority based on past behavior.

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

How does MLFQ approximates SJF?

A

It assumes that any jobs that comes in is a short job, so it will put it into highest priority and gradually move down to lower queues if the job does not finish in given time slice

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

What is a starvation problem and how does MLFQ solve it?

A

Starvation problem is when only short jobs alternate between each other without giving long-running jobs a CPU. The problem is solved by periodically boosting job’s priority.

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

What is an issue of MLFQ?

A

Presence of voodo constants such as number of queues, time slices and peroidicity of boost

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

What is a gaming scheduler problem? How is it solved?

A

It’s a problem where a process would issue an I/O request before using the time slice so it remains on the topmost queue. The issue is solved by accounting for the time slice the process used regardless of how many times it has given up the CPU.

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