College of Computer Science & Information Technology King Khalid University · جامعة الملك خالد
Week
Week 7
Topic
Memory
Workload
6–8 Hours
Status
Materials Placeholder
OverviewScheduleObjectivesMaterialsReadingLabAssignmentQuizDownloadsChecklist
Module Overview

Week 7 explains how the OS gives each process the illusion of private memory. Students study address spaces, allocation strategies, and the difference between virtual and physical addresses.

Lecture
Address spaces and memory allocation
Reading
OSTEP Chapters 13–17
Lab
Memory layout and malloc/free experiments
Due
Update date later
Weekly Schedule
TimeActivityWhat Students DoLink
Before LecturePreparation ReadingRead OSTEP Chapters 13–17 and draw a simple process address space.Book →
Lecture 1Address SpacesCode, data, heap, stack, virtual addresses, physical addresses, relocation, and protection.Slides →
Lecture 2Free-Space ManagementAllocation, fragmentation, first fit, best fit, worst fit, splitting, coalescing, and malloc/free.Slides →
Lab SessionMemory LabInspect process memory layout, use malloc/free, and observe heap behavior using small C programs.Lab →
After LectureAssignment 7Write a small allocator simulation and compare allocation policies.Assignment →
End of WeekQuiz 7Complete short quiz on address spaces, heap, stack, fragmentation, allocation policies, and memory protection.Quiz →
Learning Objectives
Outcome
By the end of Week 7, students should be able to:

Describe process memory layout, distinguish virtual and physical addresses, explain fragmentation, and compare allocation strategies.

MemoryAddress SpaceHeapAllocation
Module 7
Core
Lecture Materials
Slides
Week 7 Lecture Slides

Slides for memory management. Replace this placeholder with your final PDF or Google Slides link.

PDFLectureRequired
Slides
Lecture
Open Slides →
Notes
Week 7 Lecture Notes

Instructor notes and class summary for review after lecture and before assessment.

PDFReviewSummary
PDF
Notes
Download →
Video
Lecture Recording

Placeholder for lecture recording or external video link. Replace this href with YouTube, Blackboard, or local recording URL.

VideoRecordingOptional Review
Video
TBD
Watch →
Code
Starter Code

Starter files, examples, and templates for the Week 7 lab and assignment.

CLinuxStarter
ZIP
Starter
Download →
Reading
Required
OSTEP Chapters 13–17

Complete the assigned reading before lecture. Focus on definitions, mechanisms, tradeoffs, and examples that connect to the lab.

RequiredReadingPreparation
Required
Book/Notes
Open →
Reference
Linux man-pages Project

Use this reference to look up commands, system calls, library calls, and Linux behavior related to this week.

LinuxManualReference
Reference
man7
Open →
Lab
Lab 7
Memory Lab

Inspect process memory layout, use malloc/free, and observe heap behavior using small C programs.

Hands-onLinuxC
Required
90 min
Open Lab →
Assignment
HW 7
Week 7 Assignment

Write a small allocator simulation and compare allocation policies. Submit source code, screenshots, and a short explanation.

HomeworkSubmissionReport
10 points
Due TBD
Download →
Quiz
Quiz 7
Week 7 Quiz

Short quiz covering address spaces, heap, stack, fragmentation, allocation policies, and memory protection.

10 Questions15 MinutesOnline
Quiz
TBD
Start →
All Downloads
Files
Week 7 File Package

Central download area for slides, notes, lab, assignment, starter code, and reference files. Replace placeholder paths after uploading final files.

SlidesNotesLabAssignmentCode
Student Checklist
  • □ Complete preparation reading
  • □ Open Week 7 slides
  • □ Review lecture notes
  • □ Complete Lab 7
  • □ Submit Assignment 7
  • □ Complete Quiz 7
  • □ Save screenshots and code
  • □ Prepare questions for next week

Week 8 focuses on virtual memory and paging. Students should understand address spaces before studying page tables and TLBs.