Question: 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:

Answer the folloing question below assuming COLUMN MAJOR: Q2. Assume that in

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!