answersLogoWhite

0


Best Answer

Segmentation is a Memory Management technique in which memory is divided into variable sized chunks which can be allocated to processes. Each chunk is called a segment. A table stores the information about all such segments and is called Global Descriptor Table (GDT). A GDT entry is called Global Descriptor. It comprise of :

To translate a logical address into a linear address, the processor does the following: # Uses the offset in the segment selector to locate the segment descriptor for the segment in the GDT or LDT and reads it into the processor. (This step is needed only when a new segment selector is loaded into a segment register.) # Examines the segment descriptor to check the access rights and range of the segment to insure that the segment is accessible and that the offset is within the limits of the segment. # Adds the base address of the segment from the segment descriptor to the offset to form a linear address. If paging is not used, the processor maps the linear address directly to a physical address (that is, the linear address goes out on the processor's address bus). If the linear address space is paged, a second level of address translation is used to translate the linear address into a physical address.

A segment selector is a 16-bit identifier for a segment. It does not point directly to the segment, but instead points to the segment descriptor that defines the segment. A segment selector contains the following items: ; Index ; : (Bits 3 through 15). Selects one of 8192 descriptors in the GDT or LDT. The processor multiplies the index value by 8 (the number of bytes in a segment descriptor) and adds the result to the base address of the GDT or LDT (from the GDTR or LDTR register, respectively). ; ;

TI (table indicator) flag ; : (Bit 2). Specifies the descriptor table to use: clearing this flag selects the GDT; setting this flag selects the current LDT. ;

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Memory segmentation in operating system
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is segmentation in computer memory?

memory segmentation is the process of dividing the computer memory into different overlapping segments.


Operating system manges memory?

An Operating System manages resources. Memory is one example of resource management.


Part of operating system?

How is a memory-resident part of an operating system different from a nonresident part of an operating system?


Is kernel memory permanent memory?

No it is RAM memory used by the operating system


What is paging and segmentation in an operating system?

Paging refers to the division of address spaces into fixed size units and the logical addresses are in the form of tuples. On the other hand, segmentation is the dividing of address spaces into a defined number of segments.


What is segmentation in computer architecture?

Segmentation is part of physical memory ares.


When does the operating system creates virtual memory?

when the actual memory is full


What is responsible for managing memory?

operating system


Is an operating system responsible for managing processor time and memory allocation?

The processor time is a function of the processor. The memory allocation is a function of the operating system.


Why does an operating system reside in low memory?

This is not always true, it depends on the operating system and the bootstrap process.


What is the difference between segmentation and compaction?

Segmentation involves dividing memory into variable-sized partitions to allocate memory dynamically, while compaction rearranges memory to reduce fragmentation by moving allocated memory blocks closer together. Segmentation deals with memory allocation, while compaction improves memory utilization.


What is the memory resident portion of the operating system?

The Kernel