9,080 views
0 votes
0 votes

Is it possible to have different number of pages and frames or they need to be equal in number?

3 Answers

Best answer
2 votes
2 votes
Always page size=frame size for minimizing the internal fragmentation.

Here 8 pages are there. Number of entries in page table = 8.  
CPU generates logical address which will be divided into 2 halves - to identify page and to identify how much deeper I have to go in that page. So 3 (8=2^3) bits for uniquely identifying page and 10 bit for uniquely(1024=2^10) identifying every word. Similarly the offset that is page size will be equal to frame size so here again 10 bits for uniquely identifying each word while here 32 frames are available which can be uniquely identified by 5 bits hence answer is 13 and 15. Here they are saying logical memory is less than physical memory. Generally main memory is less in size then physical memory.
edited by
2 votes
2 votes
logical address=13 bit(3 bit for page 10 bit for offset)

physical address=15 bit( 5 bit for frame 10 bit for offset)
0 votes
0 votes
Here the number of pages are $8 = 2^3$, so you need 3 bits to represent page no field, $1024 = 2^(10)$ words per page hence you need  10 bits to represent offset. Now the number of offset bits in both logical and physical address will be the same.

Physical memory is divided into $32 = 2^5$ frames hence we need 5 bits to represent frame no.

So the logical address would be 3 + 10 = 13 bits long

and the physical address would be 5 + 10 = 15 bits long.

Related questions

0 votes
0 votes
1 answer
2
Raj Singh 1 asked Jan 3, 2019
5,025 views
Physical address is(A) The logical address added by the value in re-locatable registers(B) Re location register – logical address(C) Re location address + relocation re...
1 votes
1 votes
1 answer
3
Richa Sharma asked Jan 22, 2016
2,628 views
Represent the sentence "We are IT students" in physical memory if page size is 5 characters and the entries in page table are-061527310Assume physical memory size to be 5...