Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q7) (Virtual Memory) Suppose you have a virtual memory system where addresses are 22 bits (22-bit virtual address space), the computer has a 20-bit physical

Q7) (Virtual Memory) Suppose you have a virtual memory system where addresses are 22 bits (22-bit virtual address space), the computer has a 20-bit physical address space, and the page size is 4096 (i.e. 2^12 ) bytes.

(a)(6 pts) How many bits of a virtual address are used to determine the virtual page number and how many bits are used to determine the offset? Explain.

(b) (6 pts) How many elements would a page table need to have?

(c) (13 pts) Suppose, during the execution of a process, the MMU performs the following virtual address to physical address translations:

00 0000 0101 1010 1101 0111 → 0001 0110 1010 1101 0111

00 0001 1110 0000 1011 0100 → 1000 0001 0000 1011 0100

00 0101 0001 0101 0001 0010 → 0000 0101 0101 0001 0010

00 0000 0101 0000 0001 0010 → 0001 0110 0000 0001 0010

How many different page table entries are accessed by the MMU to produce the above translations? Which elements of the page table are they and what page frame numbers do these elements contain?

Step by Step Solution

3.30 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

A Page size 4096 bytes Therefore page offset log 4096 12 bits Therefore page number bits 2212 10 bit... 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

Project Management A Managerial Approach

Authors: Jack R. Meredith, Samuel J. Mantel,

7th Edition

470226218, 978-0470226216

More Books

Students also viewed these Operating System questions

Question

Outline three of Vivess contributions to psychological thought.

Answered: 1 week ago

Question

what is a non current asset

Answered: 1 week ago

Question

What general trade-off is involved in waiting-line decisions?

Answered: 1 week ago