Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

the total number of pages that make up an executable program is shown (no fragme

ID: 3732707 • Letter: T

Question

the total number of pages that make up an executable program is shown (no fragmentation) Need answer for all the questions! Sheet1 Sheet2 Sheet3 Homework 04 CS332 S18 NAME: The total number of pages that make up the executable program is shown (no fragmentation) The total size of a frame is equal to 512 bytes The CPU needs to access data that is at the logical address 010101010101 (12 bits) The size of a word in the system is 32 bits total program legical address pages page table 19 21 18 16 13 10 A. What is the logical page number? B. What is the logical page offset? C. What is the total size in bytes of the program? D. What is the actual physical address in binary (12 bits E. What is the total size of a page in bytes in this system? bytes bytes 20 points total

Explanation / Answer

A. Logical page number
ans-

Logical page number = logical page address/page size

logical page address is 010101010101 which is in binary we need to convert it into decimal first i.e. 1365

Since, page size = frame size & frame size is 512 bytes(given)

Therefore, logical page number = 1365/512
           = 2.66
           = 2

Logical page number = 2


B. Page offset
ans-

Page offset = logical page address mod page size
   = 1365 mod 512
   = 341

Page offset = 341

C. Total size of program in bytes
ans-

Total size = no. of pages * page size
   = 11 * 512
   = 5632 bytes

Total size of program in bytes = 5632 bytes


E. Total size of page in bytes
ans-

Since, page size = frame size & frame size is 512 bytes(given)

Total size of page in bytes = 512 bytes