When the memory resources are scarce. We use compaction.
As a memory pool is allocated from, over time the pool will become fragmented. Some objects from the pool will be allocated surrounded by objects that are not, in seemingly random order. Memory compaction is the process of moving allocated objects together, and leaving empty space together. Consider a system with 3 pages and about 50% of their objects are allocated. By compacting all the living objects into the first two pages, leaving the third page completely empty. This empty page can then be ignored during future mark/sweep phases since it is known to be empty of living objects, or it can be released and returned to the operating system.
The instructions in these files inform the various components of the computer system about such tasks as recognition of components, communications, data processing, internal data transfer, and memory management.
An Operating System manages resources. Memory is one example of resource management.
/
Role of the Memory management unit in Operating system Every program for its execution requires some space in computer memory which is provided by memory management unit using virtual memory that provides the external storage addressing location for the programs that does not have too much space in main memory for their execution and saved them in secondary memory but when required loaded them again in main memory. This deallocation and reallocation of programs in main memory deals with concurrency. At last, we say that loading capabilities of programs with the memory addressing is there in it.
The three main functions of an Operating System are process management, memory management and file management.
The purpose of the direct mapped cache tag in a computer system's memory management is to quickly determine if a requested memory address is stored in the cache memory. This helps improve the system's performance by reducing the time it takes to access data from the main memory.
input/output (I/O) system management
-Memory Management -Process Management -Disk and File System Management -Networking -Security -Graphical User Interface (GUI) -Device Driver Management
teri maa ki chut
-> memory management -> catching -> pooling
memory, processes, disks and I/O devices