

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper are: Preventing Deadlock, Sentence Definition, Atomic, Deadlock, Disk Cylinder, Doubly Indirect, Contiguous Allocation, Linked Allocation, Single-Level Index, Unix Multi-Level Index
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


General Information: This is a closed book examination. You have 60 minutes to answer as many question as possible. The number in parentheses at the beginning of each question indicates the number of points given to the question; there are 60 points in all. Write all of your answers directly on this paper. Make your anwers as concise as possible (you needn't cover every available nano-acre with writing).
For each of the following statements, indicate in one sentence whether the statement is true or false, and why. (a) Binary semaphores are those that are used by no more than two threads. (b) The Banker's algorithm is a way of preventing deadlock (c) A multi-level indexed file permits faster random access than a contiguously allocated file.
For each of the following items, write a sentence definition: (a) Atomic (b) Deadlock (c) Disk cylinder (d) Doubly indirect block
A thread can be in one of thre states: ready to run, running, or blocked. For each transition indicated below, identify under what circumstances it occurs: (a) ready -> running (b) running -> ready (c) running -> blocked (d) blocked -> ready
CS162, Midterm #2, Spring/
CS162, Spring/1992 Midterm #2 Professor Thomas Anderson 1
The Demos system employs a clever block group indexed scheme for file allocation on disk. State the principle advantage of this scheme compared to each of the following, and justify your answer: (a) contiguous allocation (b) linked allocation (c) a single-level index (d) a UNIX multi-level index
(a) (b) (c) (2 points) Can a student "starve" in your solution, in other words, not have his/her question answered? Why or why not?
There are two ways to implement capabilities. What are they? Explain how they work.
Of the two planets described in Ursula LeGuin's "The Dispossessed," which would you rather live on?
CS162, Midterm #2, Spring/
Problem #4 (8 points) 2