Computer Science 330
Operating Systems
Fall 2025, Siena University
Lecture 0x0d: Memory Management
Date: Friday, October 31, 2025
Agenda
- Announcements
- The next readings/activities from OS zyBook
- Chapter 14, Section 4, due Monday, November 3
- Chapter 16, Sections 1-3, due Friday, November 7
- Lab 6: Unix Systems Programming [HTML] [PDF] due
Monday, complete before you work on forking in the project
- Programming Project 4: Basic Shell [HTML] [PDF]
- create repositories so we can set up groups, start making progress
- reference solution executables on noreaster in
/home/cs330/basicshell
- Q&A time
- Memory management on the Commodore 64
- Looking at almost all of the exercises from OS zyBook Chapter
14, Sections 1-3
- 14.1.1, 14.1.2, 14.1.3, 14.1.4, 14.1.5, 14.1.6
- 14.2.1, 14.2.3, 14.2.4, 14.2.5, 14.2.6, 14.2.7
- 14.3.1, 14.3.2, 14.3.3, 14.3.4
- Any remaining time for labs/projects
Terminology
- physical memory (RAM)
- physical address
- logical address space
- logical address
- source module
- object module
- load module
- static vs. dynamic relocation
- relocation register
- free-space management: first-fit, next-fit, best-fit, worst-fit
- external memory fragmentation
- swapping
- memory compaction
- linking
- sharing (of dynamic modules)
- paging
- page, page frame
- page table
- internal fragmentation