Memory management

0.0(0)
studied byStudied by 6 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

Paging

  • a method of partitioning memory

  • memory is split into equal sizes called ‘pages’

  • pages are physical divisions

  • programs are then split to fit into given number of pages

<ul><li><p>a method of partitioning memory</p></li><li><p>memory is split into equal sizes called ‘pages’</p></li><li><p>pages are physical divisions</p></li><li><p>programs are then split to fit into given number of pages</p></li></ul>
2
New cards

Segmentation

  • a method of partitioning memory

  • based on logical divisions of the program, segments are logical divisions with different sizes

  • memory is partitioned according to this (check)

  • takes into account how the program is written

3
New cards

physical divisions

check

4
New cards

logical divisions

When a program is broken up (segmented) logically, loops, functions or modules are all together and not separated.

5
New cards

What is virtual memory?

A section of the hard drive that acts as RAM when main memory is full. Sections of programs not currently in use are temporarily moved to virtual memory through paging.

6
New cards

What is disk thrashing?

When the computer freezes as a result of pages being swapped between the hard disk and main memory too frequently. More time is spent transferring pages opposed to running the program. Becomes worse as virtual memory is filled up.

7
New cards

Benefits of virtual memory

  • facilitates effective multitasking

  • allows more extensive programs to be run

8
New cards

Drawbacks of virtual memory

  • disk thrashing

  • Slower access speeds than physical memory

  • Degrades performance if overused

9
New cards

Benefits of paging?

  • Facilitates efficient memory management

  • Enables the use of virtual memory

10
New cards

Drawbacks of paging?

  • can lead to internal fragmentation

11
New cards

Benefits of segmentation?

  • space-efficient due to only allocating space depending on the amount an application needs

12
New cards

Drawbacks of segmentation?

  • can lead to external fragmentation

13
New cards

What is internal fragmentation?

  • Wasted space within a page itself

  • Other unrelated data cannot be stored in this space, more wasted space exists in main memory over time. This is internal fragmentation

14
New cards

What is external fragmentation?