CMPSC 473 Quiz 1 - 1. Compare the pros and cons of...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
1.  Compare the pros and cons of hardware-managed and software-managed TLBs. Keep your answer to 2-3  sentences at the most. 2. What might happen if there were no Translation Lookaside Buffer?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A. Potenti ally  one  extra  memor access  for  every  memor access  that the  code  has B. CPU/M emory  subsyst em  would  be  unable  to  translat virtual  addres ses to  physica addres ses  since  these  are  stored  in the  TLB. C. Comm unicati on 
Background image of page 2
3. Consider two multi-threaded applications P1 and P2. P1's threads do a lot of computation while P2's  threads do a lot of blocking I/O. Consider the two user-level to kernel-level mappings we have studied so  far: (i) many-to-one and (ii) one-to-one. What kind of user-level threads library would you pick for P1 and  P2? A. (ii) for  P1 and  (i) for  P2. B. (ii) for  both. C. (i) for  both. D. (i) for  P1 and  (ii) for  P2. 4. Why must the CPU scheduler be ALWAYS invoked when returning from kernel to user  mode? 5. In the process life-cycle diagram, why isn't there a transition from "waiting" to "running"? NOTE: What we  had discussed in class may be incorrect. Think about it again!
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A. This  might  make it  difficult  to  implem ent a  fair  CPU  schedu ler.  B. This  may  cause  proces s to  take  over  the  CPU C. Such a  transiti on is  imposs ible. 6. If there were a technological breakthrough today that made DRAM extremely cheap, would we just replace  hard disks with them since they are so much faster? This would be similar to how hard disks replaced slower 
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/23/2009 for the course CMPSC 473 taught by Professor Bhuvanurgaonkar during the Fall '08 term at Pennsylvania State University, University Park.

Page1 / 15

CMPSC 473 Quiz 1 - 1. Compare the pros and cons of...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online