Professional Documents
Culture Documents
Java is an important part of modern computer system. Dynamic Memory Allocation has plays
very important role in Memory Management and becomes fundamental part of today’s
computer system. It is classical problem in computer science by paying some complexity. It
is minimizing the cost of memory by providing efficient use of it and it is art of handling
computer memory powerfully. Memory Management is commonly one of the most critical
parts of Operating System.
Swapping
Sometimes a process is swapped out of the main memory i.e removed from the main
memory into the secondary storage. This may be done to make space for other processes
so they can execute easily. Later the process that was swapped out can be swapped in for
execution.
Paging
In a computer system, virtual memory can be created that is more than the
actual memory available i.e. physical memory. To implement this, the concept of
paging is used.
In paging, the logical address space is divided into pages and the physical
address space is divided into frames. The size of both the pages and frames is
the same. The process is measured by the number of pages.
Now, these pages are brought from the logical address space to the physical
address space by storing the pages into the frames. A page table is created to
find out which page is stored in what frame.
Segmentation
This is a memory management technique that supports the user view of
memory. The logical address space is divided into a group of segments. These
segments have a name and memory length. So, the segment address is
specifies using its name, base address and length.