Name: ________________________________________________
ID Number: ___________________
E-mail Address: __________________________________
Final grades will be E-mailed to this address
Please write your answers in the space provided! Make sure your name is in the same form as it appears on your University ID card! Illegible and excessively long answers will be penalized! This exam is open-book, open-notes, closed neighbor! This exam is worth 1/5 of the final grade (20 points; allocate 6 minutes per point).
line hexadecimal source | loc reloc val reloc text | | result of 1 ______ ___ ______ ___ B 22 | relocation, | linking and 2 ______ ___ ______ ___ X: B #22 | loading at | address 0 3 ______ ___ ______ ___ B Z | | loc val 4 ______ ___ ______ ___ B Y | | ______ ______ 5 ______ ___ ______ ___ INT X | | ______ ______ 6 ______ ___ ______ ___ EXT Y | | ______ ______ 7 ______ ___ ______ ___ EXT Z | | ______ ______ | line hexadecimal source | ______ ______ loc reloc val reloc text | | ______ ______ 1 ______ ___ ______ ___ B X | | ______ ______ 2 ______ ___ ______ ___ Y = 10 | | 3 ______ ___ ______ ___ Z: | | 4 ______ ___ ______ ___ EXT X | | 5 ______ ___ ______ ___ INT Y | | 6 ______ ___ ______ ___ INT Z |
Problem A: Why is virtual memory relevant on this system, given that it has no disk? (1.5 points)
_____________________________________________________________ _____________________________________________________________Problem B: An important component was not mentioned in the background statement. The appropriate question to ask the hardware designers is, is this component built-into the CPU or was it accidentally left out of the plan? What is it? (1.5 points)
_____________________________________________________________Problem C: Your boss says there is no need for DMA I/O, no need for I/O request queues and no need for request schedulers. What is it about the change from disk to flash EEPROM that justifies this assertion? (1.5 points)
_____________________________________________________________ _____________________________________________________________Problem D: Your boss says to use LRU replacement in the page fault handler. Why would this be a mistake. (1.5 points)
_____________________________________________________________ _____________________________________________________________
Problem A: What heap management algorithm would you suggest for the prototype version of this browser? The primary criteria is reasonable performance for a reasonable amount of implementation effort. (1.5 points)
_____________________________________________________________ _____________________________________________________________Problem B: Why might the alogorithm you selected for a prototype be inappropriate in the final production version of the software. Is there a more appropriate algorithm for the production version? (1.5 points)
_____________________________________________________________ _____________________________________________________________
Problem A: How long should the time-slice be for the preemptive scheduler on this PDA. (1.5 points)
_____________________________________________________________
Problem B: Your boss says you don't need preemption because the processes displaying each animated relinquish at the end of each replot. Explain to him why he is wrong. (1.5 points)
_____________________________________________________________ _____________________________________________________________ _____________________________________________________________
Problem A: When a process needs a signal from the real-time clock at some future time, it enters that time, plus something else, into the real-time clock's queue and then awaits the signal. What kind of object is that something else? (2 points)
_____________________________________________________________
Problem B: Each time the real-time clock interrupt occurs, what does it do? (3 points)
_____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________ _____________________________________________________________