Answered You can hire a professional tutor to get the answer.

QUESTION

Suppose a system supports segmentation of memory. The address space has just 2 segments, and the top bit of the 10-bit virtual address indicates...

Suppose a system supports segmentation of memory. The address space has just 2 segments, and the top bit of the 10-bit virtual address indicates which segment it is in: segment 0 (code, heap), and segment 1 (stack). Segment 0 grows in positive direction, Segment 1 in negative direction. Given the following parameters:

Address space size:             1K

Physical memory size:         16K

Segment register information:

  Segment 0 base  (grows positive) : 0x000004ca (decimal 1226)

  Segment 0 limit                  : 382

  Segment 1 base  (grows negative) : 0x0000329e (decimal 12958)

  Segment 1 limit                  : 314

Virtual Address Trace

  VA  0: 0x0000030d (decimal:  781) --> PA or segmentation violation?

  VA  1: 0x0000030d (decimal:  781) --> PA or segmentation violation?

  VA  2: 0x0000014e (decimal:  334) --> PA or segmentation violation?

  VA  3: 0x0000023a (decimal:  570) --> PA or segmentation violation?

  VA  4: 0x0000016d (decimal:  365) --> PA or segmentation violation?

For each virtual address, either write down the physical address it translates to

OR write down that it is an out-of-bounds address (a segmentation violation).

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question