A page table for a particular process is given below: Page Number Frame Number 0
ID: 3614155 • Letter: A
Question
A page table for a particular process is given below:
Page Number
Frame Number
0
8
1
6
2
2
3
0
4
1
Calculate a starting physical memory address for each of thefollowing instructions. If the address cannot be calculated usingthe page table and the given info, say why not.
Part B) Assume that the OS is using a memorysegmentation method, instructions are 1 word long, and each addressin memory accesses only one word.
A segment table for a particular process is given below:
Segment Number
Size
Starting Address
0
3,000
13,000
1
4,000
7,000
2
1,000
20,000
3
500
6,000
4
10,000
30,000
Calculate a physical memory address for each of the followinginstructions. If the address cannot be calculated using the segmenttable, say why not.
Page Number
Frame Number
0
8
1
6
2
2
3
0
4
1
Explanation / Answer
a) 1) instruction -52 it exists in the page number 0, therefore framenumber is 8 therefore physical address = (8 *400) + 52 = 3252 2) instruction -369 it exists in the page number 0, therefore framenumber is 8 therefore physical address = (8 *400) + 369 = 3569 3) instruction -671 it exists in the page number 1, therefore framenumber is 6 therefore physical address = (6 *400) + 671 = 3071 4) instruction -1100 it exists in the page number 2,therefore frame number is 2 therefore physical address = (2*400) +1100 = 1900 5) instruction -2000 it exists in the page number 5 (because pagenumber four contains the instructions from 1600-1999), thereforeframe number for page number 5 cannot be retrieved from the pagetable. therefore we cannot find the physical address ofinstruction-2000 B) 1) segment-0, instruction-0 physical address = 13000 + 0 = 13000 2) segment-1, instruction-4000 the size of this segment is 4000 therefore itcan only contain instructions from (0-3999) therefore it cannot contain instruction-4000 andwe cannot calculate the physical address for instruction-4000 in segment-1 3) segment-2, instruction-650 physical address = 20000 +6500 = 20650 4) segment-3, instruction-499 physical address = 6000 + 499 = 6499 5) segment-5, instruction-777 physical address = 30000 + 777 = 30777
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.