Segmentation (memory)

From Wikipedia, the free encyclopedia

Segmentation is one of the most common ways to achieve memory protection; another common one is paging. Segmentation means that a part or parts of the memory will be sealed off from the currently running process, through the use of hardware registers. If the data that is about to be read or written to is outside the permitted address space of that process, a segmentation fault will result.

This usage should not be confused with that of the memory segments used by early x86 processor architectures.

For details of x86's implementation of segmentation in both 16-bit and 32-bit mode, please see the article on memory segments.

Segmentation is a memory-management scheme that supports this user view of memory. A logical address space is a collection of segments. Each segment has a name and a length. The address specifies both the segment name and the offset within the segment. The user therefore specifies each address by 2 parameters: a segment name and an offset.

[edit] See also

In other languages