YEAR 1 CO1 WEEK 24 MEMORY MANAGMENT Flashcards
What is memory management and why is it important?
Memory management is necessary to organise use of main memory by converting logical addresses to physical addresses.
Most vital resource computer needs is to manage is memory.
Define A Logical Address
Addresses at which an item appears to reside, generated by CPU.
Define Physical Addresses
Actual physical location of the storage cell in memory.
What needs to happen for a executable application to be run.
To run a process it has to be loaded into main memory.
To run more than one process all have to be in main memory at the same time.
When executable application loaded into main memory it becomes a ‘process’ and requires memory to run.
Describe Segmentation.
OS sets aside memory for process to use. This is called segmentation.
A way of portioning memory.
Variable Sized based on contents.
Are logical divisions which hold complete sections of programs.
Define Paging.
Second type of memory management which designed to handle virtual memory.
Define a Page.
A fixed sized physical division of memory. Each page is contiguous.
Describe Pagination.
When RAM full memory manager determines least used page.
Page then copied into virtual memory.
Free area renumbered by memory manager and marked as free to use.
If page needed again swapped back into RAM.
ONLY USED WHEN VIRTUAL MEMORY IN USE.
What is Disk Thrashing.
When Virtual Memory in heavy use.
As more pages are swapped eventually more time is being spent swapping pages than processing data.