Paging divides memory into fixed-size pages and frames. A page table maps pages to frames,
eliminating external fragmentation.
aging is a memory management technique used to store and access data efficiently. It allows a process to be divided into smaller parts so that memory can be used in a flexible way.
In paging, memory is divided into two parts:
Paging is a memory management method that converts a logical address generated by the CPU into a physical address in main memory. This process helps the operating system use memory efficiently.
The CPU generates a logical address which is divided into two parts:
In this example, the logical address is 13 bits:
The page number is sent to the page table. The page table stores the corresponding frame number where the page is located in RAM.
After finding the frame number, the system combines:
In this example:
Using the physical address, the system accesses the correct frame in main memory and fetches the required data.
Segmentation in Operating System (OS) is a memory management technique where a program is divided into smaller logical parts called segments.
Segmentation divides a program into logical units such as code, data, and stack segments.
Each segment has its own base and limit.
Segmentation means breaking a program into meaningful sections like:
Segmentation is a memory management technique where a logical address generated by the CPU is converted into a physical address using a segment table.
Memory management plays a vital role in the performance and reliability of an operating system. By using techniques such as paging, segmentation, and virtual memory, the OS ensures optimal utilization of limited memory resources.