The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
+1 vote
170 views

Consider the two-dimensional array A$:$

int A[ ] [ ] = new int[100][100]; where A[0][0] is at location 200 in a paged memory system with pages of size 200. A small process that manipulates the matrix resides in page 0 (locations 0 to 199). Thus, every instruction fetch will be from page 0. For three pages frames, how many page faults are generated by the following array-initialization loops, using LRU replacement and assuming that page frame 1 contains the process and other two are initially empty?

for(int j=0;j<100;j++)
    for(int i=0;i<100;i++)
        A[i][j]=0;
in Operating System by Loyal (9.2k points)
edited by | 170 views

Please log in or register to answer this question.

Related questions

+1 vote
1 answer
3
+1 vote
1 answer
5
+1 vote
0 answers
6
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,839 questions
54,799 answers
189,489 comments
80,674 users