Scheduling Flashcards

1
Q

Dispatcher

A

Performs the decision the scheduler makes. Switches context, user mode and restarts programs.

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

Dispatch Latency

A

Time it takes for the dispatcher to stop one process and start another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  • CPU utilization
  • Throughput
  • Turnaround time
  • waiting time
  • Response time
A
  • CPU utilization - how busy the CPU is
  • Throughput - number of processes that complete their execution in a time frame
  • Turnaround time - amount of time to execute a specific process
  • waiting time - time a process is in the ready queue
  • Response time - time it takes from when a request is submitted to the first response
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

FCFS

A

First Come, First Serve - Non preemptive

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

SJF

A

Shortest Job First. Gives minimum average waiting time. Hard to know CPU burst time.
Nonpreemptive - When a CPU runs a task, it will finish it without disturbing it.
Preemptive - If a new task arrives and is shorter than the remaining time of the current task, switch between them.

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

Next burst length estimation

A

Using exponential averaging:

Tn+1 = aTn + (1-a)Tn

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

Priority Scheduling

A

A priority is given to each process. The highest priority (lowest number) task is scheduled first. To prevent starvation, implement an aging system where you increase the priority for older tasks.

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

RR

A

Round Robin.
Each process gets a fixed time quantum (q) to run in a round manner.

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

Multilevel Queue

A

Ready queue is partitioned into separate queues, for example, foreground and background. each queue has its own scheduling algorithm. scheduling between the queues is done by either giving one queue full priority over the other or by time slicing (each queue gets a fixed percentage of CPU time)

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

MLFQ

A

Multi Level Feedback Queue.
Multiple queues with different priorities. Each has a defined timeing algorithm and there are methods to demoting and premoting a process between the queues.

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

PCS

A

Process-Contention Scope: Scheduling competition for user threads when the thread library schedules the threads.

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

SCS

A

System-Contention Scope: Scheduling competition for kernel threads since they are system wide.

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