What is a relocation register? Give an example and describe how it is used. What additional hardware can you add to the relocation register to enable memory protection? Give an example.
Consider a paging system with the page table stored in memory:
Fragmentation:
Consider a system with 1024 bytes (words) of physical memory divided into 8 frames. The logical address space for each process has 32 pages:
Consider a system with 32 bits for a memory access. Assume a 2 level paging scheme with 8 bits for the outer page table and 12 bits for the inner page table. How big is each page?
Explain how the OPT page replacement algorithm is similar to the SJF process scheduling algorithm. In particular, what are the uses for OPT and SJF?
What is the locality of reference? How does demand paging take advantage of this in terms of a process' working set?
Explain the principles behind the "top half" of an interrupt handler and the "bottom half."
What is the maximum number of disk I/O operations (counting a read and a write as 2 operations) required to add a block to the end of the file for each of: linked-list allocation with index (FAT) and i-nodes. Assume the base file descriptor is currently cached in memory, but nothing else is.
Using the the following pseudo-system calls and statements:
Show pseudo-code to implement a shared-memory region solution for your
pong client. You do not have to show any parameters or additional
variable declarations. You may use the functions more than
once, as needed.