The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 5 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
9.   A segmented memory has paged segments. Each virtual address has a 2-bit segment number, a 2-bit page number, and an 11-bit offset within the page. The main memory contains 32 KB, divided into 2-KB pages. Each segment is either read-only, read/ex- ecute, read/write, or read/write/execute. The page tables and protection are as follows:
Â
Â
Â
Â
Â
|
Segment 0 |
Segment 1 |
Segment 2 |
Segment 3 |
|||
|
Read only |
Read/execute |
Read/write/execute |
Read/write |
|||
|
Virtual page |
Page frame |
Virtual page |
Page frame |
 |
Virtual page |
Page frame |
|
0 |
9 |
0 |
On disk |
Page table |
0 |
14 |
|
1 |
3 |
1 |
0 |
not in |
1 |
1 |
|
2 |
On disk |
2 |
15 |
main |
2 |
6 |
|
3 |
12 |
3 |
8 |
memory |
3 |
On disk |
Â
Â
Â
For each of the following accesses to virtual memory, tell what physical address is computed. If a fault occurs, tell which kind.
Â
Â
Â
|
Access 1. fetch data |
Segment 0 |
Page 1 |
Offset within page 1 |
|
2. fetch data |
1 |
1 |
10 |
|
3. fetch data |
3 |
3 |
2047 |
|
4. store data |
0 |
1 |
4 |
|
5. store data |
3 |
1 |
2 |
|
6. store data |
3 |
0 |
14 |
|
7. branch to it |
1 |
3 |
100 |
|
8. fetch data |
0 |
2 |
50 |
|
9. fetch data |
2 |
0 |
5 |
|
10. branch to it |
3 |
0 |
 |
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on-----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be-----------