Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a. Suppose we have a simple non-segmented virtual address space, where virtual addresses are 5 bits long. How big is the virtual address space? In
a. Suppose we have a simple non-segmented virtual address space, where virtual addresses are 5 bits long. How big is the virtual address space? In other words, how many elements can be addressed? b. Suppose we have a simple non-segmented virtual address space of 16K bytes. How many bits in a virtual address (assuming each byte is addressable)'? c. Suppose we have a segmented virtual address space, with 2 segments. If a virtual address uses 1 bit for the segment, and 7 bits for the offset, how big is the virtual address space? (As in problem (a) above, please give your answer as a integer without units.) d. True or false: Segments must be placed next to each other in physical memory e. True or false: The maximum number of segments when using segmented virtual memory is 3 f. True or false: As a programmer, it is helpful to know the order of the code, heap, and stack segments in physical memory. g. True or false: Segmentation helps in the problem of sharing code between processes h. True or false: The address space of each segment must be the same size Suppose we are using segmentation with base-and-bounds address translation. Suppose, like in Chapter 16 of OSTEP, that we have segments "Code", Heap", and "Stack", where the base and bounds of each segment are as follows Segment Code Heap Stack Base 1000 16000 8000 Bound 4096 2048 2048 For each of the following virtual addresses, give the physical address (assume addresses "grow positive" in each segment), or that a segmentation fault has occurred i. (Code, 153) j. (Heap, 3327) k. (Code, 6211) I. (Stack, 32)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started