Q16. Explain briefly the functions performed by an operating system as memory manager?
Ans. In the working of a modern computer system, memory plays a central role. Both CPU and Input/output system interact with memory. Memory is a large array of words or bytes, each with its own address. The CPU reads from and writes to specific memory addresses.
Figure: Memory plays a central role in Computer System
A program must be assigned some memory area and loaded into memory in order to be executed. As the program executes, it accesses program instructions and data from memory by generating addresses of the allocated memory. When the program terminates, its memory space is declared free, and the next program may be given the same memory area. There can be many user programs loaded in the memory along with system programs and operating system.