COP4600 - Module 5 Exam 2024
OS and Memory - 1) Defines how memory is addressed 2) Memory protection 3) Memory allocation Memory Address - Indicates where data resides Physical Address - Absolute memory location on a chip Logical Address - Virtual address; Point to addresses larger than physical memory. Relative addresses that are translated by hardware and the OS to physical memory. When can a physical address be resolved: - 1) Development Time - hard coded address 2) Compile Time - by compiler/special addresses 3) Link Time - by linker - static libs 4) Load Time - by loader - shared libraries 5) Run Time - software + hardware Fence Register - Physical Addressing - - Used in uni-programmed systems - stores the address of the position in memory between the OS and User Program space. - If process attempts to access memory fence register address (OS space) = deny access. Otherwise allow access High/Low Registers -Physical Addressing - - Used in multi-programmed systems - Two registers (high & low) used to define memory bounds of a process. - If the memory address is within the boundaries of the Low and High registers, the memory address is put on the bus, and access is allowed. - SET AT EVERY CONTEXT SWITCH Base & Limit Regs - Logical Addressing - - Address space of program considers program starting at memory location 0. - Base register = address where translated program begins - Limit register = address where untranslated program ends. - If logical address tested in translated program is limit register, add logical address and base. Memory Allocation Rules - - Allow free space to be tracked - Define correct size for units of memory allocation and blocks of memory. - Find spaces for new processes that need memory. - Allow processes to allocate more memory if necessary.
Información del documento
- Subido en
- 14 de diciembre de 2023
- Número de páginas
- 3
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas