Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

see below 100. When a running process experiences a page fault, the frame to hold the missing page can only come from those frames allocated

see below

100. When a running process experiences a page fault, the frame to hold the missing page can only come from those frames allocated to that process, not from frames used by any other process. The memory system chooses which frame to use using a simple first-in first-out technique. That is, the first time it must choose a frame to use to hold a page being loaded to resolve a page fault, it chooses the first frame it loaded originally. The second page fault then uses the now oldest frame (the second one that had been loaded originally), and so on: the first frame (originally) loaded becomes the first frame out (i.e., to be reused). Each page fault causes only the one missing page to be loaded. Pages in this system are 4 Kbytes in size.

a. Suppose the 100 KB block of instructions is a loop that repeats infinitely. How many page faults are there on the second iteration of the loop?

b. Suppose a program is executing a straight, linear sequence of instructions that is 100 KB long. This process is allocated 20 frames when put into memory. How many page faults will there be to completely execute this sequence of instructions?

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

How does a joint venture differ from a strategic alliance?

Answered: 1 week ago

Question

Explain the steps involved in training programmes.

Answered: 1 week ago

Question

=+8. Why is productivity important?

Answered: 1 week ago

Question

=+ 9. What is inflation and what causes it?

Answered: 1 week ago

Question

=+6. What does the invisible hand of the marketplace do?

Answered: 1 week ago