03 - Scheduling Flashcards

1
Q

PROCESS SCHEDULING
(FCFS) First-Come, First-Served

A

Processes are executed in the other they arrive in the ready queue

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

PROCESS SCHEDULING
(SJF) Shortest Job First

A

Processes with the shortest execution time are executed first

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

PROCESS SCHEDULING
(RR) Round Robin

A

Processes are executed in a cyclic manner
Each process is assigned a fixed time quantum

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

PROCESS SCHEDULING
Priority Scheduling

A

Processes are assigned priorities, CPU is allocated to highest priority process

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

PROCESS SCHEDULING
Multilevel Queue Scheduling/Multilevel Feedback Queue Scheduling

A

Processes are divide into queues based on characteristics such as priority or process type

Feedback Scheduling:
ability for processes to move between queues based on their behaviour

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

CPU Bursts

A

Occur when a process performs a significant amount of computation without requiring much I/O or waiting time.

the process actively uses the CPU to execute instructions continuously.

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

I/O bursts

A

Occur when a process requires input/output operations

the process spends most of its time waiting for I/O operations to complete, with brief bursts of CPU activity when processing data.

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

Preemptive Scheduling vs Nonpreemptive Scheduling

A

Preemptive scheduling: The operating system can interrupt a program currently running to let another one run.

Non-preemptive scheduling:
lets a program complete its execution before switching to another one.

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

Race Conditions

A

Occur when the outcome of a program depends on the timing/sequence of events
Multiple threads and processes compete for shared resources without proper synchronisation

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

Scheduling Criteria

A

CPU utilisation – 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.

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

Processor affinity

A

When a thread has been running on one processor, the cache contents of that processor stores the memory accessed by that thread

benefit:
improved cache performance.

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

NUMA - Non-Uniform Memory Access

A

Computer architecture where multiple processors (or nodes) have access to their own local memory as well as the shared memory.

benefit:
Improves memory access times for local memory.

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