CS604 2
CS604 2
Spring 2023
Assignment # 02 Deadline Date
13/07/2023
Calculate the Need for each resource by using the need formula and draw the Need Matrix.
PO P1 P2 P3 P4
C 7 3 9 12 5
To calculate the parameters related to paging, we can use the following formulas:
Given information: -
Logical address space has 64 pages of 2048 words. –
Physical memory has 32 frames.
No. of bits needed for p (page number):
Since we have 64 pages, we need to represent them using 6 bits (2^6 = 64). So, p
= 6 bits.
No. of bits needed for f (frame number):
Since we have 32 frames, we need to represent them using 5 bits (2^5 = 32). So, f
= 5 bits.
No. of bits needed for d (offset within a page):
Each page has 2048 words, which requires 11 bits to represent (2^11 = 2048).|
So, d 11 bits.
Logical address size:
The logical address consists of the page number (p) and the offset within a page
(d). Logical address size = p + d = 6 bits + 11 bits = 17 bits.
I Physical address size:
The physical address consists of the frame number (f) and the offset within a
page (d). Physical address size = f+d=5 bits + 11 bits = 16 bits.|
Calculate the Effective Memory Access Time (Teffective) by using the formula. Show each
step of the calculation.
The End