ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > ZSTU-(2020-2021)-1 > student homework > 2018529627020 JE >
HOMEWORK 9 Version 0
👤 Author: by kagenzaclaudiengmailcom 2020-12-08 06:17:13
PAGE TABLE:



The offset is the distance (in bytes) relative to the start of the page. I.e., logical_address mod page_size. The bits for this portion of the logical address are not translated (given power of two page size).

The logical (virtual) page number is number of (virtual) page counting from zero. I.e.,
logical_address/page_size

As you noted, the physical page is determined by the translation table, indexed using the logical (virtual) address.

Once the physical page number had been found, the physical address of the start of that page is found by multiplying the physical page number by the page size. The offset is then added to determine the precise physical address. I.e.,
(physical_page_number×page_size)+offset(physical_page_number×page_size)+offset

So a logical address of, e.g., 508508, with 256256 byte pages would have an offset of
508mod256=252508mod256=252

The logical/virtual page number would be
508256=1508256=1

With the given translation table, logical page 11 translates to the physical page number 22. The physical address would then be
physical_page_number×page_size+offset=2×256+252=764

Please login to reply. Login

Reversion History

Loading...
No reversions found.