Test 2 Flashcards
Name the series of conditions, when occurring in pairs simultaneously, can facilitate the creation of a deadlock.
- Mutual Exclusion
- Hold and Wait
- No Preemption
- Circular Wait
Deadlock condition where only one process at a time can use a resource.
Mutual Exclusion
Deadlock condition where the process holding on resource is waiting to acquire a resource held by another process.
Hold and Wait
Deadlock condition where a resource can be released only by the process holding it after the process has completed its task.
No Preemption
Deadlock condition where a set of waiting process such that P(n-1) is waiting for resource from Pn1, and Pn1 is waiting for P0.
Circular Wait
______ contains the logical address space usable by a process.
Base and Limit Registers
A device that maps virtual addresses to physical addresses.
Memory Management Unit (MMU)
______ allows total physical memory space of processes to exceed available physical memory.
Swapping
A ______ is a fast disk large enough to accommodate copies of all memory images.
Backing Store
______-out, ______-in is a swapping variant for priority based scheduling.
Roll-out, Roll-in
______ occurs when the total required memory space EXISTS to satisfy a request, but it is not contiguous.
External Fragmentation
______ occurs when the allocated memory for a process might be SLIGHTLY LARGER than the requested memory.
Internal Fragmentation
What are the three solutions to the Dynamic Storage Allocation problem?
- First-fit: allocate the first hole that is big enough
- Best-fit: allocate the smallest hole that is big enough
- Worst-fit: allocate the largest hole (requires searching the entire list)
Used to translate logical addresses to physical addresses
Page Table
Sits between Main Memory and the CPU registers.
Cache
A ______ list Maintained to keep track of which frames can be allocated.
Free-frame list
A CPU cache that memory management hardware uses to improve virtual address translation speeds.
Transfer Lookaside Buffer (TLB)
The separation of user logical memory and physical memory.
Virtual Memory
The result from the first time there is a reference to a specific page in virtual memory.
Page Fault
______ paging only brings a page into memory when it is needed.
- could result in a lot of page faults
- can be optimized by loading entire process image to swap space at process load time
Demand Paging
Allows both the parent and child processes to initially share the same pages in memory.
Copy-on-write (COW)
A ______ bit can be used to reduce the overhead of page transfers; only modified pages are written to disk.
Modify (dirty) bit
What are the page replacement algorithms? (3)
- FIFO (first in first out)
- LRU (least recently used)
- Second chance (uses a reference bit; if the bit value is 1, decrement and leave in memory, but if the bit is 0 replace with next page.
Type of allocation that is proportional according to the size of the process.
Fixed Page Allocation