Click here to Skip to main content
15,877,246 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
Memory management is the task of operating system or programming language?
Posted
Comments
Thanks7872 4-Dec-14 1:48am    
How is this question related to programming?

1 solution

Memory management(MM) may appear in every part of the computer system.

At the lowest level, Computer platforms have special hardware for segmentation, paging and memory protection.

Compiler may divide the binary image into code/data/zero initialized data section.

The OS/VM may provide API for managing the heap/system stack, memory synchronization.

e.g. allocating stack for process, performing inter-process communication.


At user level, some library may also do the MM by pre-allocating a memory pool for efficient data access.

e.g. Some network stack may pre-allocate buffer for DMA R/W access

e.g. Graphic related code may pre-allocate buffer for holding vertex for model for transformation.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900