Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
261 views
in Computer by (106k points)
closed by
A computer has sixteen pages of virtual address space but the size of main memory is only four frames. Initially the memory is empty. A program references the virtual pages in the order of 0, 2, 4, 5, 2, 4, 3, 11, 2, 10. How many page faults occur if LRU page replacement algorithm is used?
1. 3
2. 5
3. 7
4. 8

1 Answer

0 votes
by (106k points)
selected by
 
Best answer
Correct Answer - Option 3 : 7

Concept:

Least Recently Used (LRU) is a page replacement technique that replaces the least recently used page first from the frame in case of a page miss.

Explanation:

Page reference: 0, 2, 4, 5, 2, 4, 3, 11, 2, 10

Page replacement algorithm: Least Recently Used (LRU)

Frames

0

0

0

0

0

0

3

3

3

3

 

2

2

2

2

2

2

2

2

2

    4 4 4 4 4 4 4 10
 

 

 

5

5

5

11

11

11

M-Miss, H-Hit M M M M H H M M H M

LRU = 7 miss = 7-page faults

Hence correct answer is 7.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...