Memory management Flashcards

1
Q

Q: What is memory management in an OS?

A

A: It is the process of managing computer memory, including allocation, protection, and sharing between processes.

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

Q: What are the three main memory management tasks?

A

A: 1) Memory allocation, 2) Protection, 3) Sharing.

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

Q: What is fixed partitioning?

A

A: Memory is divided into fixed-size blocks; each process is allocated a partition big enough to fit it.

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

Q: What is internal fragmentation?

A

A: Wasted memory inside a partition when a process is smaller than the partition.

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

Q: What is dynamic partitioning?

A

A: Partitions are sized dynamically to fit processes; leads to external fragmentation.

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

Q: What is external fragmentation?

A

A: Wasted space between partitions due to non-contiguous memory allocation.

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

Q: What is memory compaction?

A

A: Rearranging memory contents to combine free spaces into one contiguous block.

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

Q: What is segmentation in memory management?

A

A: Memory is divided into segments (e.g., code, data); each segment can be placed independently in memory.

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

Q: What is virtual memory segmentation?

A

A: Segments are stored on disk and loaded into memory as needed, not all at once.

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

Q: What is paging?

A

A: Memory is divided into fixed-size frames called pages and are then swapped between ram and secondary storage as needed.

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

Q: What is virtual memory paging?

A

A: Pages are loaded only when needed, not all at once; uses page tables to manage mappings.

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

Q: What is a benefit of paging over segmentation?

A

A: Paging avoids external fragmentation but can have minor internal fragmentation.

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

Q: What is the difference in protection/sharing between segmentation and paging?

A

A: Segmentation makes protection and sharing easier due to logical division into code/data.

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

Q: What is a page table?

A

A: A data structure that maps virtual page numbers to physical frame addresses.

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