Sample Final

  1. How does the working-set model relate process scheduling and memory management?

  2. What is an access control matrix?

  3. Three procedures, A, B, and C, are to be linked together into one process and loaded into memory. The length of each procedure is 600 words. Consider the following memory management schemes:
    1. Paging: page size is 1000 words, page tables occupy 1 page each.
    2. Segmentation: segment table size is 1000 words.
    3. Paged segmentation: page size is 1000 words, page tables occupy 1 page each, segment table size is 1000 words.
    Assume that all procedures and all tables are in memory. For each of the three systems, what is the total occupied memory space (i.e., the space that cannot be used by another process)? This includes the space occupied by the procedures and the various tables, as well as space wasted due to the fixed page size.

  4. Describe three ways that disk space may be allocated for a file.

  5. Recall that the link count field in a Linux inode in secondary storage contains the number of directory entries pointing to the inode, something that could be determined by looking at the directories themselves. Why is this field used?

  6. Consider a computer system with three users: Alice, Bob, and Cyndy. Alice owns the file text: it{alicerc}, and Bob and Cyndy can read it. Cyndy can read and write the file text: it{bobrc}, which Bob owns, but Alice can only read it. Only Cyndy can read and write the file text: it{cyndyrc}, which she owns. Assume that the owner of each of these files can execute it.
    1. Create the corresponding access control matrix.
    2. Cyndy gives Alice permission to read text: it{cyndyrc}, and Alice removes Bob’s ability to read text: it{alicerc}. Show the new access control matrix.


UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 150, Operating Systems
Version of May 25, 2022 at 8:20PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh