Memory Management Flashcards

1
Q

What is the primary function of memory management in Layer 3?

A

It ensures that processes and data are in primary memory (PM) for operation, manages competition for finite memory resources, and protects co-resident processes from one another

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

Define Virtual Address

A

A virtual address is relative to the start of a process’s address space and not the actual physical memory location

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

What is the difference between compile-time, load-time, and execution-time binding?

A
  • Compile-time, memory addresses are fixed at compile time
  • Load-time, addresses are determined when the program loads into memory
  • Execution-time, addresses can change dynamically during execution
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the three main goals when multiple programs share memory?

A

Transparency, safety, and efficiency

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

What is the difference between static and dynamic relocation?

A
  • Static Relocation, memory mapping is done before or during process loading and cannot be moved afterward
  • Dynamic Relocation, memory mapping is done at runtime, allowing processes to move freely in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is external fragmentation?

A

It occurs when total memory is sufficient to satisfy a request, but it’s not contiguous

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

What are the advantages of paging?

A
  • Simplifies memory allocation
  • Eliminates external fragmentation
  • Allows processes to use memory efficiently through logical segmentation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How does segmentation differ from paging?

A
  • Segmentation divides memory into variable-sized logical segments
  • Paging divides memory into fixed-sized blocks and removes the need for contiguous memory allocation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly