in Operating System
84 views
0 votes
0 votes
If page table size is greater than frame size then each entry in the page table occupy one total frame .Is this correct?
in Operating System
by
5 points
84 views

1 Answer

1 vote
1 vote

Is this correct ...

 

However, the part of the process which is being executed by the CPU must be present in the main memory during that time period. The page table must also be present in the main memory all the time because it has the entry for all the pages.

The size of the page table depends upon the number of entries in the table and the bytes stored in one entry...

Let's consider,

1. Logical Address = 24 bits

2. Logical Address space = 2 ^ 24 bytes

3. Let's say, Page size = 4 KB = 2 ^ 12 Bytes

4. Page offset = 12

5. Number of bits in a page = Logical Address - Page Offset = 24 - 12 = 12 bits

6. Number of pages = 2 ^ 12 = 2 X 2 X 10 ^ 10 = 4 KB

7. Let's say, Page table entry = 1 Byte

8. Therefore, the size of the page table = 4 KB X 1 Byte = 4 KB ...

 

Here we are lucky enough to get the page table size equal to the frame size. Now, the page table will be simply stored in one of the frames of the main memory.

The CPU maintains a register which contains the base address of that frame, every page number from the logical address will first be added to that base address so that we can access the actual location of the word being asked...

However, in some cases, the page table size and the frame size might not be same. In those cases, the page table is considered as the collection of frames and will be stored in the different frames...

by
11 points
Ask
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.