memory management Flashcards
What is memory segmentation
The allocation of segments or sections of memory to allow a process to run
What is a process
A process is when an executable application is loaded into main memory
What is the code segment
Where instructions for the process reside
What is a data segment
Space allocated for variables
What is a stack segment
allows the program to use functions
Why is memory management used
- Limited Memory
- Prevents programs from overwriting other programs memory
- Loads and unloads processes without affecting others
What is virtual memory
When RAM is too full the memory manager allocates a piece of the hard disk to act as main memory
What is pagination
It is designed to handle virtual memory.
FIXED size of memory next to each other.
memory manager arranges them into a page table.
not sub divided into smaller elements
What is disk thrashing
Disk thrashing is a problem that occurs when virtual memory is in heavy use due to the time it takes to swap pages.
What are memory leaks
Memory leaks are when badly written programs do not flush data correctly causing memory to get locked up.
What is a stack overflow
A stack overflow is when a stack has run out of free memory to expand into.