Name: Malick Gai Mat#: 21716053 Course: Operating Systems Assignment 2 (Memory Management)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

NAME: MALICK GAI MAT#: 21716053 COURSE: OPERATING SYSTEMS

ASSIGNMENT 2 (MEMORY MANAGEMENT)

Assignment 2.1

P1 = 12KB

P2 = 10KB

P3 = 9KB

For 10KB, 4KB, 20KB, 18KB, 7KB, 9KB, 12KB, and 15KB

First Fit = {20KB, 10KB, 18KB}

Best Fit = {12KB, 10KB, 9KB}

Worst Fit = {20KB, 18KB, 15KB}

Next Fit = {20KB, 18KB, 9KB}

Assignment 2.2

Page size = 8KB = 213 bytes

Offset = 13 bits

# Of virtual pages = 248×213 = 2(48-13) = 235.

Therefore, 235 is the number of entries in page table.

Assignment 2.3

a) Page 1 because RM = 00
b) Page 3 because it is loaded at 110 (First In)
c) Page 1 because is referenced at 256 (least recently)
d) Page 1 because it is loaded at 120 and the reference bit is 0

Reference:
https://courses.engr.illinois.edu

Andrew S. Tanenbaum(OS) Edition 4 Exercise 3 Question 36 (page No. 258)

https://www2.cs.sfu.ca

You might also like