CSE330 Chapter 9

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

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:17 AM on 10/21/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

What are the goals of memory management?

Keep CPU busy; Protect process memory; Allow relocation; Manage allocation efficiently

2
New cards

What does the Memory Management Unit (MMU) do?

Translates logical to physical addresses; Enforces protection; Supports relocation

3
New cards

What is a logical address?

Address generated by CPU; Also called virtual address

4
New cards

What is a physical address?

Actual location in main memory; Used by hardware

5
New cards

When can binding of addresses occur?

At compile time; At load time; At execution time

6
New cards

What are the advantages of dynamic loading and linking?

Load routines when needed; Reduce memory use; Share libraries across programs

7
New cards

What describes contiguous allocation?

Each process in one block; May cause external fragmentation

8
New cards

What causes external fragmentation?

Free memory split into holes; Enough total space but not contiguous

9
New cards

What causes internal fragmentation?

Allocated block larger than needed; Wasted space inside blocks

10
New cards

When is compaction possible?

When relocation is dynamic; To combine free space

11
New cards

What are the three main allocation strategies?

First-fit; Best-fit; Worst-fit

12
New cards

What does paging divide memory into?

Physical frames and logical pages

13
New cards

Advantages of paging?

No external fragmentation; Noncontiguous allocation; Easy sharing

14
New cards

What parts make up a logical address in paging?

Page number; Page offset

15
New cards

What does the page table store?

Frame numbers; Valid/invalid bits; Protection bits

16
New cards

What hardware assists address translation?

MMU; TLB

17
New cards

Disadvantages of paging?

Page-table overhead; Internal fragmentation in last page

18
New cards

Page size trade-offs?

Small pages = less waste but larger tables; Large pages = fewer tables but more waste

19
New cards

Why are large page tables a problem?

Consume memory; Slow lookups

20
New cards

Solutions for large page tables?

Hierarchical paging; Hashed page tables; Inverted page tables

21
New cards

What characterizes an inverted page table?

One entry per frame; Smaller memory use; Needs hashing to search

22
New cards

Purpose of swapping?

Move inactive processes to disk; Increase multiprogramming

23
New cards

Drawbacks of swapping?

High I/O overhead; Slower response time

24
New cards

Requirements of reentrant (shared) code?

Non-self-modifying; Read-only; Separate per-process data

25
New cards

Benefits of shared pages?

Reduced memory usage; Shared libraries; Common code mapped to same frame

26
New cards

How is memory protection achieved?

Valid/invalid bits; Base and limit registers

27
New cards

Fragmentation summary

Contiguous allocation → external; Paging → internal; Segmentation → external

28
New cards

Paging vs segmentation

Paging = fixed-size units; Segmentation = variable-size logical units

29
New cards

Hardware needed for paging

MMU; TLB; Page-table base register

30
New cards

OS responsibilities in memory management

Track used/free space; Allocate and deallocate memory; Manage paging and swapping

31
New cards

Explore top flashcards

flashcards
Week 1
20
Updated 716d ago
0.0(0)
flashcards
Introduction to Biology
33
Updated 446d ago
0.0(0)
flashcards
Classical Roots Lessons 7-8
42
Updated 1146d ago
0.0(0)
flashcards
Civil Rights and Liberties
38
Updated 1075d ago
0.0(0)
flashcards
units 1-7 vocab
361
Updated 1081d ago
0.0(0)
flashcards
Survey of Humanities- Boroque
40
Updated 925d ago
0.0(0)
flashcards
Week 1
20
Updated 716d ago
0.0(0)
flashcards
Introduction to Biology
33
Updated 446d ago
0.0(0)
flashcards
Classical Roots Lessons 7-8
42
Updated 1146d ago
0.0(0)
flashcards
Civil Rights and Liberties
38
Updated 1075d ago
0.0(0)
flashcards
units 1-7 vocab
361
Updated 1081d ago
0.0(0)
flashcards
Survey of Humanities- Boroque
40
Updated 925d ago
0.0(0)