Chapter 5 Operating Systems

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/51

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:20 PM on 9/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

52 Terms

1
New cards

What is CPU scheduling?

Selecting a process from the ready queue and allocating the CPU to it.

2
New cards

What is the CPU–I/O Burst Cycle?

A process alternates between CPU execution and I/O waiting.

3
New cards

What does the CPU scheduler do?

Selects a process from the ready queue to run on the CPU.

4
New cards

What is preemptive scheduling?

The OS can interrupt a running process and give the CPU to another process.

5
New cards

What is nonpreemptive scheduling?

A process keeps the CPU until it switches to waiting or terminates.

6
New cards

What does the dispatcher do?

Gives control of the CPU to the process selected by the scheduler.

7
New cards

What is dispatch latency?

The time required to stop one process and start another.

8
New cards

What are the five scheduling criteria?

CPU utilization, throughput, turnaround time, waiting time, and response time.

9
New cards

What is CPU utilization?

Keeping the CPU as busy as possible.

10
New cards

What is throughput?

The number of processes completed per unit of time.

11
New cards

What is turnaround time?

The total amount of time required to execute a particular process.

12
New cards

What is waiting time?

The amount of time a process waits in the ready queue.

13
New cards

What is response time?

The time from submitting a request until the first response is produced.

14
New cards

What is FCFS scheduling?

First-Come, First-Served; processes execute in arrival order.

15
New cards

What is the convoy effect?

A short process has to wait behind a long process.

16
New cards

What is SJF scheduling?

Shortest-Job-First selects the process with the shortest next CPU burst.

17
New cards

Why is SJF considered optimal?

It produces the minimum average waiting time for a given set of processes.

18
New cards

What is the main problem with SJF?

The OS must know or estimate the length of the next CPU burst.

19
New cards

What is SRTF?

The preemptive version of Shortest-Job-First.

20
New cards

What is exponential averaging used for?

Predicting the length of the next CPU burst.

21
New cards

What happens when α = 0?

Recent CPU-burst history does not count.

22
New cards

What happens when α = 1?

Only the actual last CPU burst counts.

23
New cards

What is priority scheduling?

The CPU is given to the process with the highest priority.

24
New cards

In this scheduling system, which priority number is highest?

The smallest integer.

25
New cards

What problem can priority scheduling cause?

Starvation.

26
New cards

What is aging?

Increasing a waiting process's priority over time to prevent starvation.

27
New cards

What is Round Robin scheduling?

Each process receives a small time quantum before being preempted and moved to the end of the ready queue.

28
New cards

What happens when the RR time quantum is large?

RR behaves like FIFO/FCFS.

29
New cards

What happens when the RR time quantum is too small?

Context-switch overhead becomes too high.

30
New cards

What is a multilevel queue?

The ready queue is divided into separate queues for different types of processes.

31
New cards

What is a multilevel feedback queue?

A scheduling system where processes can move between different queues.

32
New cards

What is PCS?

Process-Contention Scope; scheduling competition occurs within a process.

33
New cards

What is SCS?

System-Contention Scope; scheduling competition occurs among all threads in the system.

34
New cards

What is SMP?

Symmetric multiprocessing, where each processor can self-schedule.

35
New cards

What is processor affinity?

A process has a preference for running on a particular processor.

36
New cards

What is load balancing?

Keeping workloads evenly distributed across CPUs.

37
New cards

What is push migration?

An overloaded CPU moves tasks to another CPU.

38
New cards

What is pull migration?

An idle CPU pulls a waiting task from a busy CPU.

39
New cards

What is a soft real-time system?

A system without a guarantee that a real-time process will meet its deadline.

40
New cards

What is a hard real-time system?

A system where tasks must be serviced by their deadlines.

41
New cards

What is interrupt latency?

Time from an interrupt arriving until its service routine starts.

42
New cards

What is Rate Monotonic Scheduling?

A real-time scheduling method where shorter periods receive higher priority.

43
New cards

What is EDF scheduling?

Earliest Deadline First; tasks with earlier deadlines receive higher priority.

44
New cards

What is Little's Formula?

n = λ × W

45
New cards

What do the variables in Little's Formula mean?

n = average queue length, λ = average arrival rate, W = average waiting time.

46
New cards

What is Linux's CFS?

Completely Fair Scheduler.

47
New cards

What does Linux CFS use to choose the next task?

Virtual runtime (vruntime); the task with the lowest vruntime runs next.

48
New cards

How does Windows schedule threads?

Using priority-based preemptive scheduling.

49
New cards

How many priority levels does Windows use?

32 levels.

50
New cards

What are the two POSIX real-time scheduling classes?

SCHED_FIFO and SCHED_RR.

51
New cards

What is SCHED_FIFO?

FCFS scheduling with no time-slicing between threads of equal priority.

52
New cards

What is SCHED_RR?

Similar to SCHED_FIFO but uses time-slicing for equal-priority threads.