Segmentation Flashcards

1
Q

what is segmentation?

A
  • a memory management scheme that supports the user view of memory
  • logical addresses space is a collection of segments containing data associated with a particular logical entity
  • segments are addressed by a fixed id number
  • address consists of
  • user is aware of the segmentation, unlike paging
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a segment table>?

A
  • address mapping via a segment table (per process)
  • an entry for each segment addressable by the process, with base and limit values
  • offsets are checked against limits, trapped if illegal, added to base to get physical address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how does fragmentation affect segmentation?

A

external fragmentation may occur because phsical memory is contiguously allocated
but we can fix this by paging the segments
woa

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

describe segmentation protection?

A

we have an advantage in protection, as its likely that all data in a segment will be used in the same way

so we can associate a protection level with a partiuclar segment
- read/write/execute permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how does paging relate to segmentation?

A

each segment is a paged address space with its own page table
gives us the benefit of segmentation without external fragmentation

segment number indexes the segment table
base address and offset combined into a 1D address
page table for segment used as normal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly