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
2.3k views
in Computer by (108k points)
closed by

A system uses 3 page frames for storing process pages in main memory. It uses the Least Recently Used (LRU) page replacement policy. Assume that all the page frames are initially empty. What is the total number of page faults that will occur while processing the page reference string given below?

4, 7, 6, 1, 7, 6, 1, 2, 7, 2

1 Answer

0 votes
by (101k points)
selected by
 
Best answer

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:

Reference to pages: 4, 7, 6, 1, 7, 6, 1, 2, 7, 2.

Page 1 and 2 are present in order: 1 and 2 in page frame:

4

7

6

1

7

6

1

2

7 2

4

4

4

1

1

1

1

2

7 7

 

7

7

7

7

7

7

1

2 2

 

 

6

6

6

6

6

6

1 1

M

M

M

M

H

H

H

M

M H

 

Miss = page fault = 6

Important Points

M → miss

H → hit

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

...