

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CIS 3360 โ Security in Computing Spring 2016 Homework 2.4 (50 points)
a) If a memory reference takes 200 nanoseconds, how long does a segmented page memory reference take?
In a segmented paged memory reference scheme, system will look at the segment table first and make a segment reference, which takes 200 nanoseconds. Then a second look up on the page reference is made, which takes 200 nanoseconds as well. The word access in physical memory takes another 200 nanoseconds. So a paged memory reference takes overall 200+200+200=600 nanoseconds.
b) If we add Translation Lookaside Buffer (TLB), and 80% of all memory references are found in the TLB, what is the effective memory reference time in each case? (Assume that finding a segmented page-table entry in the TLBs takes zero time, if the entry is there. Otherwise memory tables must be searched to determine the physical address. )
Case 1: TLB hit: When the segmented page address entry is found in TLB, the memory address lookup in the TLB needs 0 nanosecond and thus a memory reference takes 100 nanoseconds. Case 2: TLB miss: When the segmented page-table entry is not in the TLB, a memory reference takes 100+100+100=300 nanoseconds. So, effective memory reference time: (Hit ratio * memory reference time on TLB hit) + (Miss ratio * memory reference time on TLB Miss) =80%200 + 20%600 = 280 nanoseconds
Each object has a list that shows all users who have access to the object and what kind of access they have.