Scheduling types and approaches (A1.3: Operating systems and control systems)

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

21 Terms

1
New cards

I. KEY TERMS

Important terms to keep in mind

2
New cards

Monopolize resources (I. KEY TERMS)

Control of resource use by single process/user

3
New cards

Arrival time (AT) (I. KEY TERMS)

Time that process arrived in CPU

4
New cards

Waiting time (WT) (I. KEY TERMS)

How long process has waited to start executing

5
New cards

Burst time (BT) (I. KEY TERMS)

Time for process to finish

6
New cards

II. TYPES OF SCHEDULING ALGORITHMS

Types of scheduling algorithms/approaches

7
New cards

Preemptive (II. TYPES)

Can stop a process that is currently running

8
New cards

Nonpreemptive (II. TYPES)

Have to wait for process to finish loading before removing

9
New cards

III. SCHEDULING ALGORITHMS

Different approaches for scheduling

10
New cards

First come first serve (FCFS) (III. ALGORITHMS)

Processes execute in order they arrive

- NONPREEMPTIVE

11
New cards

FCFS Advantages (III. ALGORITHMS)

- Simple = easy to implement

- Fair (processes in order of AT)

12
New cards

FCFS Disadvantages (III. ALGORITHMS)

- Convoy effect - short processes delayed by long-running processes

.=^ WT, v system throughput (also caused by non-preemptive nature)

13
New cards

Round robin (III. ALGORITHMS)

Each process assigned quantum (fixed time slice) to execute

- PREEMPTIVE

- Quantum expires = preempts/remove process and placed at end of queue, goes to next process

14
New cards

Round robin advantages (III. ALGORITHMS)

- Fair allocation of CPU time among processes

- ^ responsiveness = ^ system interactivity/user experience

- prevents a process from monopolizing resources

15
New cards

Round robin disadvantages (III. ALGORITHMS)

- Too small quantum = ^ context-switch overhead (switching things over and over, saving and loading process states)

- Too big quantum = processes usually complete all tasks at once = potential inefficiency

16
New cards

Priority scheduling (III. ALGORITHMS)

Assign priority level to each process, CPU to highest priority

- Can be either non/preemptive

- Same priority = follow FCFS

- Goal: critical tasks executed asap

17
New cards

Priority scheduling advantages (III. ALGORITHMS)

- Prioritize important tasks = ^ system responsivness

- Flexible: priorities can be adjusted based on system needs

18
New cards

Priority scheduling disadvantages (III. ALGORITHMS)

- High-priority tasks dominate CPU time = starvation for low-priority processes

- More complex to implement and manage

- Priority inversion - lower priority must process for higher priority to go = deadlock

19
New cards

Multilevel queue scheduling (hybrid) (III. ALGORITHMS)

Separates into several separate queues each with own scheduling algorithm and priority level

- Processes permanently assigned to queue based on characteristics (process type, priority, memory requirements, etc)

- Queues themselves scheduled in specific order, usually priority

20
New cards

Multilevel queue scheduling (hybrid) advantages (III. ALGORITHMS)

- Flexible for different types of processes

- Prioritizes critical and interactive processes = ^ responsiveness

- Each queue has own scheduling algorithm that works best of rit

21
New cards

Multilevel queue scheduling (hybrid) disadvantages (III. ALGORITHMS)

- High-priority queues frequently occupied = starvation for low-priority processes

- Complex to implement and manage

- Processes are permanently assigned: unoptimal if behaviour changes over time

Explore top flashcards

Frans HCE 4
Updated 992d ago
flashcards Flashcards (55)
APUSH units 8/9
Updated 948d ago
flashcards Flashcards (202)
Bio p cr
Updated 1047d ago
flashcards Flashcards (39)
PSYCH UNIT 1
Updated 798d ago
flashcards Flashcards (216)
BIO 120 Test 3
Updated 989d ago
flashcards Flashcards (24)
APUSH Chapter 32
Updated 241d ago
flashcards Flashcards (36)
Biology full forms
Updated 252d ago
flashcards Flashcards (87)
Frans HCE 4
Updated 992d ago
flashcards Flashcards (55)
APUSH units 8/9
Updated 948d ago
flashcards Flashcards (202)
Bio p cr
Updated 1047d ago
flashcards Flashcards (39)
PSYCH UNIT 1
Updated 798d ago
flashcards Flashcards (216)
BIO 120 Test 3
Updated 989d ago
flashcards Flashcards (24)
APUSH Chapter 32
Updated 241d ago
flashcards Flashcards (36)
Biology full forms
Updated 252d ago
flashcards Flashcards (87)