Home / Expert Answers / Computer Science / 2-determine-for-the-following-code-how-many-pages-are-transferred-between-disk-and-main-memory-y-pa326

(Solved): 2. Determine for the following code how many pages are transferred between disk and main memory (y ...



2. Determine for the following code how many pages are transferred between disk and
main memory (you must count reads and wri

2. Determine for the following code how many pages are transferred between disk and main memory (you must count reads and writes separately!), assuming each page has 2000 words, the active memory set size is 1000 (i. e., at any time no more than 1000 pages may be in main memory), and the replacement strategy is LRU (the Least Recently Used page is always replaced); also assume that all two-dimensional arrays are of size (1:4000, 1:4000), with each array element occupying one word, N=4000 for I :=1 to 4000 do for J :=1 to 4000 do { A[I, J] :=A[I, J] *B [I, J]; B[I, J] :=C [J, N-I+1] *A [J, I] } provided the arrays are mapped into the main memory space (a) in row-major order, (b) in column-major order.


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer: The no. of pages needed to store matrix B = 2048*2048/1024 = 4096 pages The no. of pages needed to store matrix A = 2048*2048/1024 = 4096 pages here no. of operations = 2048*2048 [ A[I
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe