in Operating System edited by
1,129 views
0 votes
0 votes

in Operating System edited by
1.1k views

4 Comments

page table is divide into pages?

I suppose it should be "each page table has $2^{12}$ entries"
3
3

yes, without the no. of entry in a page we cant say anything .

0
0
I think, they mean that 1st level page table is divided into 2^12 pages considering given Page size
0
0
yes..page table is divided into 2^12 pages wat..////.is wrong..paging is applied on page table...
0
0

5 Answers

5 votes
5 votes
The logical adress =p1+p2+d.

Here p1=12bits p2=12bits and d=12 bits. Therefore logical adress size=36 bits

1 comment

Answer is given as 37
0
0
1 vote
1 vote
logical address
no. of pages P page size

now no. of pages are P of logical address is further used for 1st level table...as

P
  P1( no. of pages of page table)12bit  P2(page size of page tableIi.e 4KW)12 bit

  no . of frames = p.a.s/ frame size
frame size =  p.a.s/ no. of frames 
frame size = 128MW/ 214 = 213 W
 now frame size same as page size...
page size = 213 W

so P = P1 +P2

AND  page size of logical address is same as frame size

logical addess
P1+P2= 12+12= 24 BIT  PAGE SIZE = FRAME SIZE==>13 BIT                         

LOGICAL ADDRESS = 37 BIT

4 Comments

phulwani...why paging..evolved just read the book...smiley else  we would have continued with contiguous memory allocation..

0
0
@Tauhin Gangwar

so in above explaination by @Tauhin...we are assuming page size of first level is equal to page table size of second table that is why 12+12 ??
0
0
Even if we consider this logic as true then inner level pages will require 2B for addressing each frame bcoz 2^14 frames are there. And size of page table is 2^12 then 2^12/2 gives 2^11 entries in inner page table.

Then answer should be 12+11+13 which gives 36 bit LA
0
0
0 votes
0 votes

Please see if this approach is right or wrong.

Let Logical Address Space be x words.

Now, Page Size =  Frame Size = $\frac{Physical Address Space}{No. of Frames}$ = $\frac{2^{27}}{2^{14}}$ = 213 words.

Number of Pages = $\frac{x}{2^{13}}$

Page Table Entry = Number of bits to address each frame = 14bits = 1.75B

Number of pages in inner Page Table = $\frac{x * 1.75}{2^{13} * 2^{12}}$ (Each page of a Page Table is 4KW)

Now, $\frac{x * 1.75}{2^{13} * 2^{12}}$ = 212 (Page Table is divided into 212 Pages)

Solving, we get, x = 1.14 * 236 $\approx$ 21 * 36 = 237 = 37bits.

Please check this!!

0 votes
0 votes
PAS = $2^{27}$W

with $2^{14}$ Frames

$\Rightarrow $ size of frame$ = $ size of Page $ =2^{13}$W

LAS =$13+12+12=37$ bits

1 comment

How did you take 12+12 plz explain?

0
0

Related questions