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

) (10 pts) a) What is T2.? Using the diagram below, b) esplain how TLB hit and T

ID: 3711292 • Letter: #

Question

) (10 pts) a) What is T2.? Using the diagram below, b) esplain how TLB hit and TLB miss occur in the systurm and e) explain what operating system does if THL mis oueurs in the sysicm (5 pts) Consider a paging system, the first part of the logical address is page number, second part the second part is the offict within a page In a 32 memory address high order 24 bit spcity page number, and low order 8 bits specify offiset (d) within a page ) is a) How many pages (maximum) can be used in a program? b) What is the size of a page? 6) (5 pts) What is the difference betwen paging and segmentation

Explanation / Answer

Solution:

a)

Since 24 bits specify the page number then number of pages that can be there are

= 2^24 = 16 M pages

b)

The page size is 32-24 = 8 bits

and 2^8 = 256

it is of 256 bytes

6)

Paging is the virtual memory where the partition to address the memory is of same size called as page numbers.

in segmentation, the partition is of variable size based in the size which is required for a particular segment.

Paging:
Transparent to the programmer (system allocates memory)
No separate protection
No separate compiling
No shared code

Segmentation:
Involves programmer (allocates memory to specific function inside code)
Separate compiling
Separate protection
Share code

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)