Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer the folloing question below assuming COLUMN MAJOR: Q2. Assume that in a paging system a process is given 2 frames. The frames are 512
Answer the folloing question below assuming COLUMN MAJOR:
Q2. Assume that in a paging system a process is given 2 frames. The frames are 512 words long. Assume that all of instruction for the process fit perfectly in the first frane. A 128 by 1024 two- dimensional array, A, is declared by the process and the second frame is to be used when an array element is referenced. The elements of the array fit perfectly in the appropriate number of logical pages and no other data or instructions are included in these pages - only aray elements The array is stored in COLUMN MAJOR. Assume that it takes a word to store a value in eacl:h array position. Consider the following loop that manipulates the array elements: for i- O to 127 do forj-O to 1023 do How many total number of page faults will be generated by the statement A [i][j] in the loop above? Answer: How many total number of page faults will be generated by the statement A[i]i]- i the loop above? for j- O to 1023 do for i - 0 to 127 do
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started