Week 1 - Memory Management Flashcards

1
Q

Why not use new and delete?

A

Undefined behaviour and Inadequate capabilities

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

Attributes of Memory Managers

A
  1. Ease of use
  2. Performance
  3. Memory overhead
  4. Debugging capability
  5. Fragmentation Control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 2 Locality of Reference?

A
  1. Temporal Locality
  2. Spatial Locality
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Temporal Locality?

A

If a memory address is accessed once, its likely to be accessed again in the near future

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

What is Spatial Locality?

A

Memory addresses near the currently accessed address are likely to be accessed soon

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

What is Internal Fragmentation?

A

When memory is divided into fixed size block and the allocated memory block is larger than the requested memory size.

The allocated unused space which cannot be utilised by other processes is called Internal Fragmentation.

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