








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Notes; Class: Operating Systems; Subject: Computer Science; University: University of San Diego; Term: Fall 2004;
Typology: Study notes
1 / 14
This page cannot be seen from the preview
Don't miss anything!









Fixed Partitions Variable Partitions Paging Segmentation
What does the OS have to manage? Programs: Processes, Threads, Synchronization I/O: Hardware, Interrupts, Direct Memory Access Memory/Disk: Virtual Memory, Paging, Naming Memory Management
To provide convenient abstraction for programming To maximize performance given scarce memory To protect processes and their memory
Physical and virtual addressing Techniques: Partitioning, paging, segmentation Page table management, TLBs, VM tricks
Page replacement algorithms
Physical Memory: To Run a Program… Memory My Program Physical Memory: To Run a Program Memory My Program
Physical Memory: Multi- processing Memory My Program Your Program Multi-programming and Memory
How can we implement VM?
Fixed Partitions
My program’s memory is all in one place, but I don’t exactly know where it starts P P P P2’s Base Offset Base Register
Advantages
P2’s Base Offset Base Register
Disadvantages
P2’s Base Offset Base Register
Disadvantages
P2’s Base Offset Base Register < + P2’s limit Limit Register Recap
It’s a trade-off between the two
Paging
Page 1 Page 3 Page 2 Page N Virtual Memory Physical Memory Paging
Page Table Illustration Physical memory Page frame Offset Physical Address Page number Offset Virtual Address Page frame Page Table Paging Example
Next time