Cpu Scheduling

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/49

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.

50 Terms

1
New cards
__________ scheduling is the basis of multiprogrammed operating systems, allowing the CPU to switch among __________.
CPU, processes
2
New cards
The primary goal of multiprogramming is to maximize __________ utilization by ensuring that some process is always running.
CPU
3
New cards
The CPU scheduler selects a process from the __________ queue and allocates the CPU to it.
ready
4
New cards
A process execution consists of a cycle of __________ execution and __________ wait.
CPU, I/O
5
New cards
The histogram of CPU burst durations generally follows an __________ or __________ distribution.
exponential, hyperexponential
6
New cards
The two types of CPU scheduling are __________ scheduling, where processes voluntarily give up the CPU, and __________ scheduling, where processes can be forcibly removed.
nonpreemptive, preemptive
7
New cards
In preemptive scheduling, processes may be removed from the CPU if an __________ occurs or if a higher-priority process arrives.
interrupt
8
New cards
The __________ module gives control of the CPU to the process selected by the scheduler.
dispatcher
9
New cards
The time taken for the dispatcher to stop one process and start another is called __________ __________.
dispatch latency
10
New cards
The first-come, first-served (FCFS) scheduling algorithm uses a __________ queue.
FIFO
11
New cards
The __________ scheduling algorithm selects the process with the shortest CPU burst time next.
shortest-job-first (SJF)
12
New cards
Preemptive SJF scheduling is also known as __________ scheduling.
shortest-remaining-time-first
13
New cards
The __________ scheduling algorithm assigns each process a fixed time slice and cycles through them.
round-robin (RR)
14
New cards
A time slice in round-robin scheduling is also known as a __________ __________.
time quantum
15
New cards
The __________ scheduling algorithm assigns each process a priority value and executes the highest-priority process first.
priority
16
New cards
The problem of a low-priority process waiting indefinitely is known as __________.
starvation
17
New cards
The technique used to gradually increase a waiting process’s priority over time to prevent starvation is called __________.
aging
18
New cards
In __________ scheduling, processes are divided into distinct queues based on priority or process type.
multilevel queue
19
New cards
In __________ scheduling, processes can move between different priority queues based on their behavior.
multilevel feedback queue
20
New cards
The __________ __________ scope determines how user-level threads compete for CPU time within a single process.
process contention
21
New cards
The __________ __________ scope determines how kernel-level threads compete for CPU time across the entire system.
system contention
22
New cards
The two primary approaches to multiprocessor scheduling are __________ and __________ multiprocessing.
asymmetric, symmetric
23
New cards
In __________ multiprocessing, a single processor handles scheduling while others execute user processes.
asymmetric
24
New cards
In __________ multiprocessing, each processor schedules its own tasks independently.
symmetric
25
New cards
A __________ __________ occurs when a low-priority process holds a resource needed by a high-priority process.
priority inversion
26
New cards
The __________ __________ problem happens when a single CPU-bound process keeps the CPU, making I/O-bound processes wait.
convoy effect
27
New cards
The scheduling criterion that measures how long it takes for a process to start responding is called __________ __________.
response time
28
New cards
The scheduling criterion that measures how long a process takes from submission to completion is called __________ __________.
turnaround time
29
New cards
The scheduling criterion that counts the number of processes completed per unit time is called __________.
throughput
30
New cards
The scheduling criterion that measures the percentage of time the CPU is busy is called __________ __________.
CPU utilization
31
New cards
The scheduling criterion that measures the time a process spends in the ready queue is called __________ __________.
waiting time
32
New cards
A process that requires more CPU time than I/O time is considered __________-bound.
CPU
33
New cards
A process that requires more I/O time than CPU time is considered __________-bound.
I/O
34
New cards
A __________ lock is a synchronization mechanism that prevents multiple processes from executing critical sections simultaneously.
mutex
35
New cards
The method used to determine when a process moves between queues in multilevel feedback queue scheduling is called __________ __________.
scheduling policy
36
New cards
The __________ scheduling algorithm is considered optimal as it provides the minimum average waiting time.
shortest-job-first (SJF)
37
New cards
The __________ __________ is used in scheduling to estimate the next CPU burst based on previous burst times.
exponential average
38
New cards
The RR scheduling algorithm results in a high number of __________ __________ when the time quantum is too small.
context switches
39
New cards
The RR scheduling algorithm degenerates to __________ scheduling if the time quantum is too large.
FCFS
40
New cards
The __________ algorithm ensures that processes with higher priority preempt those with lower priority.
priority scheduling
41
New cards
The __________ scheduling algorithm is a hybrid approach that divides processes into queues based on different criteria.
multilevel queue
42
New cards
The __________ __________ scheduling algorithm prevents long-running processes from monopolizing CPU time by dynamically adjusting their priority.
multilevel feedback queue
43
New cards
A scheduling algorithm is considered __________ if it ensures that no process waits indefinitely.
fair
44
New cards
The time taken to save and restore process states during a context switch is called __________ __________.
context switch time
45
New cards
The __________ __________ effect occurs when short processes wait behind a long CPU-bound process in FCFS scheduling.
convoy effect
46
New cards
The __________ __________ policy ensures that processes are scheduled in the order they arrive.
first-come, first-served (FCFS)
47
New cards
In a multilevel queue scheduling system, the foreground queue often uses __________ scheduling, while the background queue uses __________ scheduling.
round-robin, FCFS
48
New cards
The two main types of thread scheduling are __________ scheduling and __________ scheduling.
process-contention, system-contention
49
New cards
In multilevel queue scheduling, each queue has its own __________ __________ for managing processes.
scheduling algorithm
50
New cards
A CPU scheduling algorithm should aim to maximize __________ and minimize __________.
CPU utilization, response time