What is Main Memory?
The main memory is central to the operation of a Modern Computer. Main Memory is a large array of words or bytes, ranging in size from hundreds of thousands to billions. Main memory is a repository of rapidly available information shared by the CPU and I/O devices. Main memory is the place where programs and information are kept when the processor is effectively utilizing them. Main memory is associated with the processor, so moving instructions and information into and out of the processor is extremely fast. Main memory is also known as RAM (Random Access Memory). This memory is volatile. RAM loses its data when a power interruption occurs.
Memory Management in Operating System
The term memory can be defined as a collection of data in a specific format. It is used to store instructions and process data. The memory comprises a large array or group of words or bytes, each with its own location. The primary purpose of a computer system is to execute programs. These programs, along with the information they access, should be in the main memory during execution. The CPU fetches instructions from memory according to the value of the program counter.
To achieve a degree of multiprogramming and proper utilization of memory, memory management is important. Many memory management methods exist, reflecting various approaches, and the effectiveness of each algorithm depends on the situation.
Here, we will cover the following memory management topics:
- What is Main Memory?
- What is Memory Management?
- Why Memory Management is Required?
- Logical Address Space and Physical Address Space
- Static and Dynamic Loading
- Static and Dynamic Linking
- Swapping
- Contiguous Memory Allocation
- Memory Allocation
- First Fit
- Best Fit
- Worst Fit
- Fragmentation
- Internal Fragmentation
- External Fragmentation
- Paging
Before we start Memory management, let us know what is main memory is.