Question

How do modern operating systems solve this? [3 marks] i) This is a snapshot of a page table and a translation look aside buff


answer for all questions....
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)  Translation Lookaside Buffer (TLB) is a special cache used to keep track of recently used transactions from the page table. TLB contains page table entries that have been most recently used. So basically it is a cache of the page table.

b) When any page request happens in the system then it first checks into the TLB whether a page is present or not? then check into the page table then if it is present in the memory then find corresponding frame number and find location in the memory but if the page number is not present in the page table then it can conclude that the page is not present in the memory so miss of the memory is happening and bring the page in the memory and then that page is used for further computation.

i) page 9

Page 9 is not present in the TLB so check the PAGE TABLE and it is also not present in the Page table so not present in the memory. so bring the page 9 into the memory and make the entry in the page table but before that one page from the page table is swapped to secondary memory and make a room for page 9.

ii) page 0

Page 0 is not present in the TLB so it is not a very frequent page so check in the page table and page 0 is present in the page table and corresponding page frame of the memory is 2. and a modified bit is 0 so from frame 2 we can directly access the page 0.

iii) page 30

page 30 is present in the TLB and Modified (M) bit is 1 so that is modified than an earlier copy of the frame so consider modified memory of page 30.

c) M and R bit

1) R(reference bit)

The referenced bit will say whether this page has been referred to in the last clock cycle or not. It is set to 1 by hardware when the page is accessed.

2) M(modified bit)

The modified bit indicates whether the page has been modified or not. Modified means sometimes when we try to change or write something on to the page. If a page is modified, we should replace that page with some other page, then the modified information should be kept on the hard disk or it has to be written back or it has to be saved back. It is set to 1 by hardware on write-access to page which is used to avoid writing when swapped out. A dirty bit is known as a modified bit.

iii) company should use the segmentation type of memory management scheme.

because here we do not want to change the company side code view so in the segmentation type the user view function is considered for the paging. segmentation is more appropriate in this case.

iv) In a bit addressable scheme the machine has a 16-bit size of the address while page size is 4k which is 12 bit so total bit for the page size is 16-12=4 so there are 2^4 pages possible, 16 pages are there so page table contains the 16 possible entries.

a) 16 pages are there in the virtual address space.

b) find the page number and offset

i) 25035

for 25035 decimal number corresponding, a binary number is 0110000111001011

first 4 bit for page number so that is 0110 and last 12 bit for offset that is 000111001011

so page number is 6 and offset 459.

ii) 804

0000001100100100 is a binary number corresponding to the 804 decimal number.

where first 4 is age number i.e. 0000 that is 0 is page number and last 12 bit is an offset 001100100100 i.e 804

so address 804 the page number is 0 and offset is 804.

Add a comment
Know the answer?
Add Answer to:
answer for all questions.... How do modern operating systems solve this? [3 marks] i) This is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • For part A: convert the virtual address into page numbers and offset, and then into hexadecimal...

    For part A: convert the virtual address into page numbers and offset, and then into hexadecimal numbers. Redraw the page table showing which pages were referenced and in any needed to be loaded into memory and what frame was selected. Assume frames 6,7,11,and 12 are available. 9.22 The page table shown in Figure 9.32 is for a system with 16-bit virtual and physical addresscs and with 4,096-byte pages. The reference bit is been referenced. Periodically, a thread zeroes out all...

  • 3. Virtual Memory (20 points) An ISA supports an 8 bit, byte-addressable virtual address space. The...

    3. Virtual Memory (20 points) An ISA supports an 8 bit, byte-addressable virtual address space. The corresponding physical memory has only 256 bytes. Each page contains 32 bytes. A simple, one-level translation scheme is used and the page table resides in physical memory. The initial contents of the frames of physical memory are shown below. VALUE address size 8 bit byte addressable each byte of addressing type memory has its own address 32 B page size physical memory size 256...

  • Problem 6 (13 points) The page table below is for a system with 16-bit virtual as well as physica...

    Problem 6 (13 points) The page table below is for a system with 16-bit virtual as well as physical addresses and with 4,096-byte pages. The reference bit is set to 1 when the page has been referenced. Periodically, a thread zeroes out all values of the reference bit. A dash for a page frame indicates the page is not in memory. The LRll pagg-replacement algorithm is used. The numbers are given in decimal Page Frame eferepceit 14 10 13 15...

  • Please help me with the following question. Please show your work so I can understand how...

    Please help me with the following question. Please show your work so I can understand how you arrived at the solution. PLEASE DO NOT COPY OTHER ANSWERS FROM THE INTERNET. Those answers are incorrect and or do not show work. The following is a page table for a system with 12-bit virtual and physical addresses and 256-byte pages. Free page frames are to be allocated in the order 9, F, D. **A dash for a page frame indicates that the...

  • Problem 6 (13 points) The page table below is for a system with 16-bit virtual as...

    Problem 6 (13 points) The page table below is for a system with 16-bit virtual as well as physical addresses and with 4,096-byte pages. The reference bit is set to 1 when the page has been referenced. Periodically, a thread zeroes out all values of the reference bit. A dash for a page frame indicates the page is not in memory. The LRll pagg-replacement algorithm is used. The numbers are given in decimal Page Frame eferepceit 14 10 13 15...

  • please answer $5 UXIF map in the computer uses direct mapping Question 18 5 pts Suppose...

    please answer $5 UXIF map in the computer uses direct mapping Question 18 5 pts Suppose we have a byte-addressable computer using 2-way set associative mapping with 16-bit main memory addresses and 32 blocks of cache. Suppose also that each block contains 8 bytes. The size of the block offset field is bits, the bits. size of the set field is bits, and the size of the tag field is 5 pts Question 19 Suppose we have a byte-addressable computer...

  • Please answer the following questions about paged memory... A) How much space needs to be allocated...

    Please answer the following questions about paged memory... A) How much space needs to be allocated in the minimum and maximum cases for a two-level page table for a machine with a 32-bit virtual memory address, a 1K page size, and which has four times as many inner pages as outer pages? Assume any stored page table value requires 32 bits. B) For the two-level paging approach above, if a Translation Lookaside Buffer (TLB) is used and can cache both...

  • 1. Consider a simple paging system with the following parameters: 232 bytes of physical memory; page...

    1. Consider a simple paging system with the following parameters: 232 bytes of physical memory; page size of 210 bytes; 216 pages of logical address space. How many bits are in a logical address? How many bytes are in a frame! How many bits in the physical address specify the frame? How many entries are in the page table? How many bits are in each page table entry? Assume each page table entry contains a valid/invalid bit. 2. Consider a...

  • 1) The following page table illustrates a system with 12-bit virtual and physical addresses and 256-byte...

    1) The following page table illustrates a system with 12-bit virtual and physical addresses and 256-byte pages. Free page frames are to be allocated in the order9 F, D. A dash for a page frame indicates that the page is not in memory. (4 points) Page Page-Frame 0x4 OxB 0 2 4 0x2 0x0 0xC 7 Convert the following virtual addresses to their equivalent physical addresses irn hexadecimal. All numbers are given in hexadecimal. In the case of a page...

  • ​Suppose you have a byte-addressable virtual address memory system with 8 virtual pages of 64 bytes each

    Suppose you have a byte-addressable virtual address memory system with 8 virtual pages of 64 bytes each, and 4-page frames. Assuming the following page table, answer the questions below: Page #Frame #Valid Bit0111312-03014215-06-07-0a) How many bits are in a virtual address? b) How many bits are in a physical address? c) What physical address corresponds to the following virtual addresses (if the address causes a page fault, simply indicate this is the case)? 1) Ox00 2) 0x44 3) OxC2 4) 0x80

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT