Midterm II
Part of
materials for 22C:50, Fall 2003
|
Name: ______________________________________________ ID Number: ___________________
Please answer in the space provided! Your name must be legible and in the form used on your University ID card! Illegible and verbose answers will be penalized! This exam is open-book, open-notes, closed neighbor! This exam has 5 problems; spend about 10 minutes on each.
List these elements in the order in which they happen; for each, where is it in the layers of software between user and hardware. (2 points)
getc(), a middleware routine, called by user
___________________________________________________
___________________________________________________
The user hits a key on the keyboard.
___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________
___________________________________________________
getc(), a middleware routine, returns to the user
a) Why could the Berkeley scheme outperform systems that used fixed association of pages to locations in the backing store? (1 point)
b) Where would you save the backing store address of each page while that page is not in main memory? (1 point)
Name: ______________________________________________
a) Assume the simplest DMA interface. What might force the operating system to make a memory-to-memory copy of the user's buffer prior to doing the DMA transfer? (1 point)
b) A DMA interface can handle scatter-read gather-write transfers if the controller takes not just one buffer address and one count, but a list of buffer addresses, each with a count, and then processes the entire list in one transfer. How does this help? (1 point)
a) What aspects of Unix file system semantics are not supported by this proposal? (1 point)
b) Given that new disk drives and even new storage technologies arrive on the market fairly frequently, why is this proposal likely to lead to higher development and maintenance costs? (1 point)