Main management is the responsibility of operating systems. Memory management involves the efficient allocation of the memory, its use, then freeing the memory after the program terminates.
Main memory plays vital role in the processing. It is a large array of words whose size ranges from hundreds of thousands to billions. Programs and data should be in main memory before CPU executes it. CPU reads instructions from main memory and executes
these instructions during fetch and execute cycle. In the multiprogramming environment several processes are processed simultaneously therefore all the corresponding programs must be in the memory so that they are executed properly.
It is the responsibility of the operating system to ensure the proper management of memory. In order to execute a program, it must be mapped to absolute address, as the program executes it accesses the instructions and data from main memory by generating these absolute addresses and then it terminates and then the free space is declared available that can be allocated to some other program for its execution.
In order to improve the utilization and the user response, operating system keeps track of all the running programs as well as the programs waiting in the queue. Many different memory management schemes are available, most of which are hardware dependent. Following are some main tasks of operating systems as far as memory management is concerned:
· Keeping track of the portions of memory that are being used and by whom
· Deciding which program will be loaded in the memory when some existing program terminate
· Allocation and deallocation of memory of memory whenever needed.
Main memory plays vital role in the processing. It is a large array of words whose size ranges from hundreds of thousands to billions. Programs and data should be in main memory before CPU executes it. CPU reads instructions from main memory and executes
these instructions during fetch and execute cycle. In the multiprogramming environment several processes are processed simultaneously therefore all the corresponding programs must be in the memory so that they are executed properly.
It is the responsibility of the operating system to ensure the proper management of memory. In order to execute a program, it must be mapped to absolute address, as the program executes it accesses the instructions and data from main memory by generating these absolute addresses and then it terminates and then the free space is declared available that can be allocated to some other program for its execution.
In order to improve the utilization and the user response, operating system keeps track of all the running programs as well as the programs waiting in the queue. Many different memory management schemes are available, most of which are hardware dependent. Following are some main tasks of operating systems as far as memory management is concerned:
· Keeping track of the portions of memory that are being used and by whom
· Deciding which program will be loaded in the memory when some existing program terminate
· Allocation and deallocation of memory of memory whenever needed.