Question: Consider a demand paging system where an integer is stored in 4 bytes, page size is 5 1 2 bytes, uses LRU page replacement algorithm
Consider a demand paging system where an integer is stored in bytes, page size is bytes, uses LRU page replacement algorithm and each process can be assigned frames. A process executes the following code where the code occupies of page and integers x and y are stored in general purpose registers of the processor.
int x y a;
ex
CO
y
whiley
axy
a How many pages are needed for the array if all the elements of the array are stored contiguously.
b How many page faults will this program generate? Jerstify the answer.
c Calculate the amount of internal fragmentation in bytes.
d If the program makes the following page references: What is the working set Wt Delta with t equal to time at th reference assuming window size equal to references?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
