Operating Systems - Chapter 7

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/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:36 PM on 7/27/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards
Virtual memory (VM)
A collection of one or more logical address spaces, each of which may exceed the size of physical memory.
2
New cards
Virtual address
A logical address in virtual memory.
3
New cards
Demand paging
The principle of loading a page into memory only when it's needed, rather than at the start of execution.
4
New cards
Present bit
A binary flag in each page table entry indicating whether the corresponding page is currently resident in memory.
5
New cards
Page fault
An interrupt that occurs when a program references a non-resident page, triggering the OS to load it from disk.
6
New cards
Page replacement
The act of overwriting a page in memory with a different page loaded from disk.
7
New cards
Modified bit (m-bit)
A binary flag in each page table entry indicating whether the page has been modified during execution (set automatically on a write).
8
New cards
9
New cards
Reference string
The sequence of page numbers referenced by an executing program during a time interval.
10
New cards
Optimal page replacement algorithm
Selects the page that will not be referenced for the longest time in the future; unrealizable in practice but gives a lower bound on page faults.
11
New cards
FIFO page replacement algorithm
Selects the page that has been resident in memory for the longest time.
12
New cards
Least-recently-used (LRU) algorithm
Selects the page that has not been referenced for the longest time; implemented via a queue sorted from least- to most-recently used.
13
New cards
Referenced bit (r-bit)
A bit set automatically by hardware whenever a page is referenced.
14
New cards
Aging register
A register associated with a page that is shifted right periodically; used to approximate LRU by tracking recent access history.
15
New cards
Aging page replacement algorithm
Groups pages by recency using aging registers; replaces the page with the smallest register value.
16
New cards
Second-chance (clock) algorithm
A coarse LRU approximation using the r-bit and a circular pointer; gives a page a "second chance" if r = 1.
17
New cards
Third-chance (not-recently-used/NRU) algorithm
Refines second-chance by also using the m-bit, giving modified pages extra chances since replacing them is costlier.
18
New cards
Optimal working set
The set of resident pages that will still be needed in the immediate future (determined via a forward-looking window of size d).
19
New cards
Working set (WS)
The set of pages referenced during the past d memory operations preceding time t (trailing window).
20
New cards
Working set page replacement algorithm
Keeps resident only pages visible in a trailing sliding window of size d.
21
New cards
Page-fault-frequency (PFF) replacement algorithm
Adjusts the resident set size based on the frequency of page faults, using a threshold d.
22
New cards
Page fault rate (P)
P = f/t, the fraction of memory references that result in a page fault (0 ≤ P ≤ 1).
23
New cards
Effective access time (E)
The average memory access time accounting for page fault overhead.
24
New cards
Load control
Determining how many processes should run concurrently to maximize system performance.
25
New cards
Thrashing
A state where most time is spent moving pages between memory and disk, with little real progress made (CPU nearly idle).
26
New cards
L = S criterion
Load control heuristic: CPU utilization is near-optimal when mean time between page faults (L) equals the time to service a page fault (S).