Quiz1_solutions - QUIZ 1 Solution Set Q5 Compare the pros and cons of hardware-managed and software-managed TLBs Keep your answer to 2-3 sentences

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

View Full Document Right Arrow Icon
QUIZ 1 Solution Set Q5. Compare the pros and cons of hardware-managed and software-managed TLBs. Keep your answer to 2-3 sentences at the most. A. Hardware-managed are faster than software-managed TLBs (this is essentially true when there are lots of TLB misses and the operating system has to handle this miss rather than the hardware). However, software-managed TLBs are more flexible than hardware-managed ones because the hardware has to specify a fixed format for page tables etc. Q7. Why must the CPU scheduler be ALWAYS invoked when returning from kernel to user mode? A. CPU scheduler should always be invoked when returning from kernel to user mode so that all processes get fair chance of execution and no single process dominates the CPU. Q11. Why can't threads share stacks and registers as well as heap, data, and code? A. Stacks are used to store the local data for each thread and registers maintain the addresses (PC etc) specific to each thread. Hence, threads are generally performing different functionalities and require independent stacks and registers. Q12. Your textbook's cover shows dinosaurs on it? Why do you think such a cover was
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
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 / 2

Quiz1_solutions - QUIZ 1 Solution Set Q5 Compare the pros and cons of hardware-managed and software-managed TLBs Keep your answer to 2-3 sentences

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

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