Virtual memory Flashcards
What is virtual memory?
it is an allocated area of secondary storage device which allows large programs to be run when there is insufficient memory
How does virtual memory work?
uses backing store as additional memory for temporary storage
swaps pages using paging between RAM and backing store to make space in RAM for pages needed
holds part of the program not currently in use
What problems arise with virtual memory?
disk threshing -
when the computer tends to freeze when due to pages being swapped to frequently between main memory and the hard disk
How does virtual memory use the process of paging/swapping?
moving data between RAM and virtual memory
removes data that isnt needed in RAM and replaces it with one that is
Advantages
inexpensive - does not require any physical setting up
supports multi-tasking - allows users to utilize more of RAM than hardware permits. goes beyond physical limits and can help processes that demands more memory than system can manage
Disadvantages
RAM has higher speeds than virtual memoru when operated on systems internal storage
due to page swapping, applications take longer to execute. disk threshing