Posts

Showing posts from September, 2019

What Is Fragmentation,Segmentation,Compaction in OS.?

Image
What Is Fragmentation, Segmentation, and Compaction in OS.? 1.Fragmentation As processes are loaded and removed from memory, the free memory space is broken into little pieces. It happens after sometimes that processes can not be allocated to memory blocks considering their small size and memory blocks remain unused. This problem is known as Fragmentation. Fragmentation is of two types: 1 External fragmentation Total memory space is enough to satisfy a request or to reside a process in it, but it is not contiguous so it can not be used. 2 Internal fragmentation The memory block assigned to the process is bigger. Some portion of memory is left unused as it can not be used by another 2.Segmentation  The user’s view of memory is not the same as the actual physical memory.  A program is a collection of segments. A segment is a logical unit such as the main program, procedure, function, local variables, global variables, common block, stack, symbol tab...