Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We consider a program that has two segments that are shown in the below table: Segment 0, containing instructions, and segment 1, containing data. The

 We consider a program that has two segments that are shown in the below table:  Segment 0, containing instructions, and segment 1, containing data. The memory is a virtual memory system with:

  • virtual addresses that have a 4-bit page number,
  • and a 10-bit offset.

The page table entries are given as follows:

Segment 0

Segment 1

Virtual Page #

Page Frame #

Virtual Page #

Page Frame #

0
2
0
On Disk
1
On Disk
1
14
2
11
2
9
3
5
3
6
4
On Disk
4
On Disk
5
On Disk
5
13
6
4
6
8
7
3
7
12

For each of the following cases, either give the real (actual, physical ) memory address which results from dynamic address translation or identify the page fault.

a) Fetch from segment 1, page 1, offset 3

b) Store into segment 0, page 0, offset 16

c) Fetch from segment 1, page 4, offset 28

d) Jump to location in segment 1, page 3, offset 32

Step by Step Solution

3.62 Rating (163 Votes )

There are 3 Steps involved in it

Step: 1

a When the segment one is fetched with virtual page one and offset three then the allocat... 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_2

Step: 3

blur-text-image_3

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 Operating Systems

Authors: Andrew S. Tanenbaum, Herbert Bos

4th edition

013359162X, 978-0133591620

More Books

Students also viewed these Operating System questions

Question

Find a unit vector in the direction of: [-2 -1 2]T

Answered: 1 week ago