Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Suppose we are using virtual memory. A process is made up of 6 pages (0 to 5) and is allowed to use 3 frames

4. Suppose we are using virtual memory. A process is made up of

6 pages (0 to 5) and is allowed to use 3 frames (0 to 2).

Suppose it wants to use its pages in this order:

0 4 1 0 3 2 1 2

(a) Using the First-in-First-Out algorithm, fill out this

chart to show which pages are in which frames at each point.

Also indicate whether a page fault occurred. When we start,

all frames are empty.

Page Used Frame 0 Frame 1 Frame 2 Page Fault?

0

4

1

0

3

2

1

2

(b) Now redo it with the Least-Recently-Used algorithm.

Page Used Frame 0 Frame 1 Frame 2 Page Fault?

0

4

1

0

3

2

1

2

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

Step: 3

blur-text-image

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions