Internal Fragmentation vs External Fragmentation

Internal vs External

Fragmentation

Users keep loading and unloading processes from main memory. Processes are typically stored in blocks in memory. The available memory blocks may not be large enough to accommodate processes that require contiguous memory space. This condition is called fragmentation. In other words, fragmentation occurs when a user dynamically allocates memory for a process and the process fails to load even though sufficient memory is available because continuous memory allocation is not possible .
internal vs external fragmentation img

Internal Fragmentation

When a process is assigned to a memory block and if that process is smaller than the memory requested, it creates a free space in the assigned memory block. Then the difference between assigned and requested memory is called the internal fragmentation.

Internal vs external fragmentation 1

External Fragmentation

When the process is loaded or removed from the memory, a free space is created. This free space creates an empty space in the memory which is called external fragmentation.

External fragmentation
Difference between internal & external fragmentation

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription