Week 1 - Memory Management Flashcards
1
Q
Why not use new and delete?
A
Undefined behaviour and Inadequate capabilities
2
Q
Attributes of Memory Managers
A
- Ease of use
- Performance
- Memory overhead
- Debugging capability
- Fragmentation Control
3
Q
What are the 2 Locality of Reference?
A
- Temporal Locality
- Spatial Locality
4
Q
What is Temporal Locality?
A
If a memory address is accessed once, its likely to be accessed again in the near future
5
Q
What is Spatial Locality?
A
Memory addresses near the currently accessed address are likely to be accessed soon
6
Q
A
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.