Fragmentation refers to an unwanted problem that occurs in the OS in which a process is unloaded and loaded from memory, and the free memory space gets fragmented. Like a disorderly closet, fragmentation in OS scatters everything and makes finding necessities more difficult. In technical parlance, this term denotes the condition in which available memory or storage space divides into smaller non-contiguous chunks. Memory fragmentation is a prevalent problem in operating systems that can result in the inefficient use of memory resources. There are two types of fragmentation: internal and external, and they both have an impact on memory allocation and use. An unwanted problem with operating systems is fragmentation, which occurs when processes load and unload from memory and divide available memory. Because memory blocks are so small, they cannot be assigned to processes, and thus remain idle.