Memory Management Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what is paging?

A

where memory is split into blocks of a fixed size with physical division
programs are split into fixed sizes which can then be easily slotted into any free spaces in RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Advantage of paging

A

incredibly simple, just break up the memory into fixed chunks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Disadvantage of paging

A

ignores programs structure/flow
loops and large data structures can end up going into multiple pages and end up jumping into RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is segmentation?

A

where programs are broken up into logical divisions
each block has a varying size
could be split into segments such as instructions and data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Advantage of segmentation

A

keeps major sections of the program together reducing inconvenient jumps around RAM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disadvantage of segmentation

A

complicated to know where to split programs up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Paging and segmentation

A

no reason cant use both
in a modern OS the smallest size a segment can be is the size of a single page
e.g windows and linux default page size in 4kib

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Paging and segmentation disadvantage

A

will be wasted space if a processor doesn’t use an entire page of memory as only one process can exist in a single page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is virtual memory?

A

enables the use of secondary storage to store loaded programs that are not currently being executed
as secondary storage has significantly more storage capacity than RAM we can also load massive programs
we do this by moving pages into seconday storage

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Advantage of virtual memory

A

allows programs that wouldn’t normally fit into RAM to still be executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Disadvantages of virtual memory

A

incredibly slow (secondary storage is significantly slower than RAM)
if being used a lot it can significantly shorten the lifespan of secondary storage device, storage thrashing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly