Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions