Introduction Memory management is an important part of modern computer system. Dynamic Memory Allocation plays a significant role in Memory Management and becomes indispensable part of today’s computers. In operating systems, it’s related to physical level and is broadly divided into three parts: Hardware Memory Management, Operating System Memory Management, and Application Level Memory Management 2. In Hardware, RAM and cache memory are included, which are physical components used to actually store data. In the OS, jobs/programs are allocated to some specific memory blocks.
At the application level, memory management has two related tasks – Allocation and Recycling. It checks the availability of sufficient memory for the objects and data structures of each running job. When a program demands some memory, then the memory manager allocate block of memory to it and when a job no longer needs the data in previously allocated memory blocks, then those blocks become available for reassignment. Summary Dynamic Memory Allocation also called as Manual Memory Management is prevalent technique in which memory is allocated at run time.
It is allocated with required amount of bytes whenever a program, application, data, variable demands. ‘C’ programming language is generally used to present DMA due to its easiness in showing allocation and de-allocation. At run time, the programmer has direct access to memory over DMA.
‘C’ language supports dynamic memory allocation functions – malloc(), calloc() and realloc() to allocate memory to our programs or applications 3. With the help of these functions user can allocate required size of memory at run time. The memory manager could not reuse the allocated memory without de-allocation the nolonger required memory. ‘C’ language has provided free function for de-allocation of unused memory (‘delete’ keyword). Pointers are used in DMA during allocation of memory to hold the address of allocated block. Personal Opinion I find the whole mechanism of allocating and de-allocating memory in DMA very interesting because it allocates require bytes of memory only at run time and de-allocate memory after its use in order to reuse that particular memory.
Its most surprising benefit is that memory manager can perform better role even when there is short of memory. Conclusion In this research article, the author has presented the role of dynamic memory allocation in memory management in an easy way. In which, some basic information about how DMA works is provided. We conclude that DMA has minimized the cost of memory by providing efficient use of it because it has the art of handling computer memory powerfully. References 2 Patil, N.
and Irasbashetti, P. (2017). International Press Corporation – Inpressco. online Inpressco.com. Available at: http://inpressco.
com Accessed 25 dec. 2017. 3 Diwase, D. and Rathod, P. (2017). IJERA internet computing. online Inpressco.com.
Available at: http://inpressco.com Accessed 25 Dec. 2017.