CS502 Practice Final Exam

  1. Consider a paging system with the page table stored in memory:

    1. If a memory reference takes 175 nanoseconds, how long does a paged memory reference take?
    2. If we add associative registers, and we have a 95 percent hit-ratio what is the effective memory access time? Assume access to the associative registers takes 5 nanoseconds.

  2. What kind of fragmentation do we have with paging? Given N processes in memory, how much fragmentation do we have?

  3. What is the locality of reference? How does demand paging take advantage of this in terms of a process' working set?

  4. File system initialization:

    1. Briefly describe what happens when a file system is formatted.
    2. Briefly describe what happens when a file system is mounted.
    3. Which happens first, a "format" or a "mount"?

  5. What is the maximum number of disk I/O operations required to add a block to the end of the file for each of: contiguous allocation, linked-list allocation with index and i-nodes. Assume the base file descriptor is currently cached in memory, but nothing else is.

  6. Consider a file system that supports aliases (links). Suppose we have:

        /home/mark/file.txt
        /user/local/temp.txt
    
    Where "temp.txt" and "file.txt" are intended to refer to the same set of data blocks on the disk (ie - the same file). If "temp.txt" was a hard-link, what would happen if "file.txt" was deleted? If "temp.txt" was a soft-link, what would happen if "file.txt" was deleted?

  7. Why do large file-system blocks (typically) result in better file system access times. Why do large blocks result in less efficient use of disk space?

  8. Explain the principles behind the "top half" of an interrupt handler and the "bottom half."

  9. What is the role of the device independent layer of a device driver?

  10. Can a disk have more cylinders than tracks? Can a disk have more sectors than tracks? Can a disk have more cylinders than platters?

  11. Explain why you can use "pure" LRU for a disk cache replacement algorithm but it is more difficult to use "pure" LRU for a memory cache (page) replacement algorithm.


Return to the CS502 Home Page