Exercise. Segmentation


Statement.

System memory size is 64 units and Operating System size is 4 units. The processes are allocated in the exercise table order.

Given exercise processes data, answer the questions:

  1. Create segments tables for each process at simulaton end:
    Process
    Segment Size Address Valid Bit
    etc.)...
  2. What is the formula used to know the physical address corresponding to the logical address of a process in segmentation memory management?
  3. Indicate the corresponding physical address of processes in the table. If address does not match the logical address space of the process indicate an error, and if the address is in a swapped segment indicate segmentation error
    Process @logical
    address
    physical
    address
    P1 @ 3
    P1 @ 13
    P2 @ 7
    P3 @ 0
    P3 @ 41

Data

Process Total
Size
Units
Segment Size
Units
initially
allocated
P1 20 Code 2 YES
    Data 10 YES
    Stack 8 NO
P2 20 Code 5 YES
    Data 14 NO
    Stack 1 YES
P3 40 Code 10 YES
    Data 20 YES
    Stack 10 YES

Are allocated into memory in the table order.