Showing posts with label Segmentation. Show all posts
Showing posts with label Segmentation. Show all posts

Saturday, 3 October 2026

Difference Between Internal and External Fragmentation

Internal Fragmentation and External Fragmentation are two important types of memory fragmentation in operating systems. Both represent situations where memory is not utilized as efficiently as it could be, but the way the unused memory occurs is different.

In simple terms, internal fragmentation occurs inside an allocated memory block, while external fragmentation occurs between allocated memory blocks.

Difference Between Paging and Segmentation: Paging vs Segmentation Explained

Difference Between Stack and Heap Memory: Stack vs Heap Explained

Stack and heap are two important areas associated with memory management during program execution. They are commonly discussed in operating systems, C, C++, Java, and other programming environments. Stack memory is generally used for function-call information and automatic storage, while heap memory is used for dynamically allocated objects and data. Their allocation method, lifetime, management, size characteristics and performance are different.

Table of Contents

Monday, 27 April 2015

Difference between Paging and Segmentation



Characteristics
Paging
Segmentation
Definition
Paging breaks physical memory Into fixed-sized blocks called frames and logical memory into blocks of the same size called pages. When a process is to be  executed, its pages are loaded into any available memory frames from the backing store. The backing store is divided into fixed sized blocks that are of the same size as the memory frames.
Segmentation is the division of computer’s primary memory into segments or sections. In segmentation, a reference to a memory location includes a value that identifies a segment and an offset within that segment.
Length
All pages are divided into equal length.
The size of a memory segment is generally not fixed and may be as small as a single byte.