Memory management - Operating systems(OS)

Memory Management : Memory management in a system can be done by operating system nothing but the os which you installed in your system .
lets see how the operating system manages the memory before going to know about the memory

What is a memory : memory is nothing but it is the place where you can store the various data that data may be user program and part of the operating system .
main memory is the sum of the ram and rom memory s
Ram: ram is the temporary memory where the data in this memory goes vanish when the power gone .
Rom: rom is the memory where the data in this memory does not vanish even the power gone . that means
         we can store our data permanently .
then come into the memory management as i said earlier the memory management is done by operating system . let us tell you how it will be
   when you switch on the system the part of the os (operating system) which you installed in your system that may be windows 7,windows 8,linux,unix,mac whatever will load into the main memory and the remaining space will be given to user requirements where you can load your program to execute .this entire thing will be done in ram which is the part of the main memory .
here is the main memory allocation as shown in below

there are two modes in main memory where you can store your programs in main memory

1) Absolute mode
2) Relocatable mode

Absolute mode : Absolute mode is nothing but you can store your program in  memory at fixed addressing mode . you cant execute that program by using the reference address .

Relocatable mode : In this mode you can store your program in  memory at any address why because here is the address start from 0 to 9 . so you can execute your program by using the reference address . 

                        

Comments