Segmentation Flashcards

1
Q

What is segmentation?

A

Memory management scheme that supports user view of memory, ie (filename.txt)

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

How does segmentation work?

A

Logical address space is collection of segments, contains associated data.

Addresses are 2D

Segments addressed by some fixed id numbe

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

What constructs segmentation?

A

The compiler

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

How is addressing implemented in segmentation?

A

Logical addresses are 2-dimensional, physical are 1.

Address mapping via segment table, which is a per-process table.

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

How are the address translated?

A

Segment number is an index into segment table. Offset is then checked against the limit.

Add offset to base to get physical address

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

How is fragmentation affected by this?

A

Contiguous allocation of physical memory means external fragmentation may occur.

Compaction can be done at any time, but is expensive.

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

What is the solution to the fragmentation issues?

A

Page the segments

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

How does segmentation affect protection?

A

Advantageous, represent semantically defined portions of the program. Likely that all data in a segment will be used in the same way.

Can have protection levels per segment.

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

How is paged segmentation done?

A

Each segment is a paged address space, segment number indexes segment table - base address and offset combined.

Page table for segment used as normal.

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