Week 5-6 Flashcards
How does the MMU communicate to RAM and the CPU
CPU > Logical address > MMU > physical address > RAM
Main memory is divided into what two parts?
Operating system space and User memory
What are holes and why do they happen when we talk about continuous allocation?
• Holes are parts of the memory that are not allocated to a process, they happen when processes get allocated and then quit
What are the three general approaches to storage allocation
- First fit - Use the first hole that is big enough
- Best fit - use the smallest block that is big enough
- Worst fit - use the biggest block
When does fragmentation happen?
• Happens when there are small spaces in memory left over from allocation
What is the difference between static and dynamic linking?
Static linking is when modules are linked at compile time (shared libraries are pre-allocated)
Dynamic linking is when modules are linked as needed in the operating system (Shared libraries are actually shared, OS must be prepared for this)
What is a Overlay and what is swapping?
Overlay: When only needed instructions are kept in memory so when more memory is needed it takes over an older instruction that isn’t used
Swapping: When a process is moved to a backing store (hard drive) for use later.
The point of using pages and frames is to:
map memory
Physical memory is divided into _______ (512 bytes to 8K sizes typically)
Logical memory is divided into _______ (512 bytes to 8K sizes typically)
Frames
Pages
An address from a page table is divided into what two parts?
- Page number (index of a page table)
* Page offset (location within the page)
Does each process have a page table? (T/F)
(True)
What keeps track of allocated and free frames?
Frame table
What is a TLB and why is it used?
- translation look-aside buffer
* Maps pages to frames in the MMU
Do pages need to = frames?
NO
What is demand paging?
When pages of data are not copied from disk to RAM till then are really needed.