Question: Consider two primitive memory virtualization schemes for representing the address space of a process: Scheme #1: Single Segment Manages the address space of a process

Consider two primitive memory virtualization schemes for representing the address space of a process:

 

Scheme #1: Single Segment

Manages the address space of a process using a single set of base and bounds registers to provide address translation for a unified program address space containing the code, stack, and heap virtual memory addresses.  The unified address space is stored with a minimum 4KB size, and can grow in 4KB increments.

 

Scheme #2: Multiple Segments for Code, Stack, Heap

Manages the address space of a program using segmentation, where the code, stack, and heap of a process are stored as independent segments in physical memory.  Three sets of base and bound registers are used to support address translation.  Segment sizes are managed in 1 KB increments.

 

For these two schemes, assuming code, stack, and heap segments are of identical size, answer the following questions considering that registers are 8-bytes (64-bits) each, and that 1KB = 1,000 bytes.

 

To store a user program with code, stack, and heap segments of 5KB each, which scheme is more space efficient?

To store a user program with code, stack, and heap segments of 5.2KB each, which scheme is more space efficient?

Step by Step Solution

3.38 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In Sheme 1 t stre user rgrm with de stk nd he segments f 5KB eh we need 8KB3 24 KB f strge se beu... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!