paging and segmentation Flashcards
What is paging?
It allows programs to run despite insufficient memory capacity by splitting the sections up into smaller pieces. All of these sections are fixed size (equal).
What is segmentation?
It allows programs to run despite insufficient memory capacity by splitting sections into even smaller sections and still provide some space for future programs. Because of this, the sizes of the sections are all different.
Similarities between paging and segmentation
- Both allow programs to run despite insufficient memory
- Pages and segments are stored on disk
- Pages and segments are transferred into memory when needed
Differences between paging and segmentation
- Pages are equal size, segmentation have different sizes
- Pages are made to fit sections of memory whilst segments are complete sections of programs
- Pages are physical division, segments are logical division
What is virtual memory?
When the RAM has no more space to store items, virtual memory is used. It is faster than using the HDD and if the time spent moving pages/segments from memory to disk is more than processing instructions, the computer will start to work slower.