search
Log In
0 votes
187 views

We consider a program which has the two segments shown below consisting of instructions in segment $0,$ and read/write data in segment $1.$ Segment $0$ has read/execute protection, and segment $1$ has just read/write protection. The memory system is a demand- paged virtual memory system with virtual addresses that have a $4-bit$ page number, and a $10-bit$ offset. The page tables and protection are as follows (all numbers in the table are in decimal):

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

  1. Fetch from segment $1,$ page $1,$ offset $3$
  2. Store into segment $0,$ page $0,$ offset $16$ 
  3. Fetch from segment $1,$ page $4,$ offset $28$
  4. Jump to location in segment $1,$ page $3,$ offset $32$
in Operating System 187 views

Please log in or register to answer this question.

Related questions

0 votes
0 answers
1
80 views
Write a program that simulates a toy paging system that uses the $\text{WSClock}$ algorithm. The system is a toy in that we will assume there are no write references (not very realistic), and process termination and creation are ignored (eternal life). The ... per $1000$ memory references. Explain what is needed to extend the program to handle a page reference stream that also includes writes.
asked Oct 26, 2019 in Operating System Lakshman Patel RJIT 80 views
0 votes
0 answers
2
109 views
Write a program that simulates a paging system using the aging algorithm. The number of page frames is a parameter. The sequence of page references should be read from a file. For a given input file, plot the number of page faults per $1000$ memory references as a function of the number of page frames available.
asked Oct 26, 2019 in Operating System Lakshman Patel RJIT 109 views
0 votes
0 answers
3
1 vote
1 answer
4
46 views
It has been observed that the number of instructions executed between page faults is directly proportional to the number of page frames allocated to a program. If the available memory is doubled, the mean interval between page faults is also doubled. Suppose that a normal instruction ... which time it gets $15,000$ page faults, how long would it take to run if twice as much memory were available?
asked Oct 26, 2019 in Operating System Lakshman Patel RJIT 46 views
...