Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 4 bytes, page size is 512 bytes, uses LRU page replacement algorithm and each process can be assigned 4 frames. A process executes the following code where the code occupies 80% of page 0 and integers x and y are stored in general purpose registers of the processor.
int x =0, y, a[200][200];
e(x +200)(
[CO3]
y =0
while(y++<200)
a[x][y]=0
}
(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: 0,1,2,3,0,4,0,6,0,4,8,9,0,11,0,13,10,0,15,16,17,0 What is the working set W(t, Delta) with t equal to time at 11th reference assuming window size equal to 6 references?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

design a simple performance appraisal system

Answered: 1 week ago