Question: Please show every step and formula to logic used. Do not skip any steps, show all work thanks. Suppose you have a system that uses

 Please show every step and formula to logic used. Do not

Please show every step and formula to logic used. Do not skip any steps, show all work thanks.

Suppose you have a system that uses virtual memory with 4 KB pages. Every instruction on this computer uses exactly 2 words of memory. How many instructions are on a page? 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. Now 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? Finally, 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? Suppose you have a system that uses virtual memory with 4 KB pages. Every instruction on this computer uses exactly 2 words of memory. How many instructions are on a page? 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. Now 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? Finally, 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!