Posts

Memory Management and Cache level Organization

Image
Whenever programs load its always load on computers memory (Main Memory ) and that portion of process or program that are very frequently loaded and which are most probably part of the program and which should be executable next  we take it to cache from main memory similarly as we study in previous blogs (Note:- please studies previous memory management blog then it will be easy to understandable) Name Access Type Capacity(memory Size) Access time CPU Register Random In KB Much faster Cache Memory Random In MB Faster Main Memory (Ram) Random Few GB Less faster Disk  Memory  (S.M Rom) Direct Few TB Slow Tape  Memory Sequential 1-20TB Very slow C.P.U has to read something from main memory for processing CPU Access time is faster from cache t...

Memory Management And Contiguous, Non-contiguous memory allocation

Image
The operating system will decide which process on secondary memory will get which area in main memory This is also an important concept in operating system There is two important memory allocation policy            Contiguous memory allocation       Non-contiguous memory allocation Contiguous memory allocation: When we take a complete process from secondary memory to main memory all together then is called contiguous memory allocation Non-contiguous memory allocation: When we take a process from secondary memory we brake it into pieces then we take it to main memory then it can arrange in different areas in main memory In starting means in 1980s 1990s we have contiguous memory allocation so slowly we understand it faces a number of problems especially external fragmentation so we move to non-contiguous memory allocation policy so there is no need to store process in secondary memory to main memory all together. Our...