Which of the following is a function of memory management in an operating system?
a) Allocating and deallocating memory to processes
b) Managing system file permissions
c) Establishing network connections
d) Managing user interface
Answer:
a) Allocating and deallocating memory to processes
Explanation:
Memory management is a crucial function of an operating system that involves allocating and deallocating memory to processes. The OS ensures that each process has enough memory to run efficiently without interfering with other processes.
Memory management also handles paging, swapping, and virtual memory to maximize the use of available memory resources. It keeps track of used and free memory and optimizes memory usage for better performance.
Efficient memory management prevents memory leaks, ensures stability, and enhances the system’s overall performance.