Memory Management Flashcards

1
Q

What does memory hold ?

A

A programs data and instructions for execution by the CPU

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

What are the key challenges of memory management ?

A

Keeping multiple processes in memory simultaneously,
maintaining performance,
protecting processes from one another,
Allowing shared memory for inter process communication,
enable simple memory addresses

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

What is process loading ?

A

A process is moved from the disk to memory before execution

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

What is swapping ?

A

When two processes swap places with each other (From memory to the disk and vice versa)

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

What do we need to be able to perform swapping ?

A

preservation / restoration of process state,
swap space on disk and memory,
ideal candidates for swapping

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

What is fixed partition memory ?

A

Memory is divided into fixed partitions,
The OS has one partition and the others are allocated to processes.

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

What are advantages and disadvantages of FPM ?

A

Advantages:
Efficient use of memory
enables multi-programming
Disadvantages:
Processes may be too large for partitions
wasted memory due to fragmentation

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

What is Variable partition memory ?

A

Memory is allocated based on process size,
provides better memory utilisation than FPM

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

What determines how processes are allocated in PM ?

A

placement policies:
Best fit - smallest available block that fits the process,
Worst fit - largest available block,
First fit - first available block

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

What is fragmentation ?

A

When processes terminate, they leave small gaps in the memory, these gaps are often too small to fit other processes which leads to inefficient memory space

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

What is Memory compaction ?

A

A method used to reduce fragmentation. Shifts processes to consolidate free memory

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

What is paging ?

A

Memory is divided into fixed sized pages,
Processes are split across multiple page frames,
logical addresses are split into:
page number,
displacement
page table stores addresses

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

What is segmentation ?

A

instead of fixed size pages, variable size segments.
logical addresses split into:
segment reference,
displacement,
segment tables store addresses

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