Appearance
Processor Architecture and Design - Practice Test 3
This test covers Modules 7-9.
Questions
- What abstraction makes one CPU appear continuous to several processes?
- Distinguish a Type 1 hypervisor from a Type 2 hypervisor.
- What is the purpose of a page table?
- What does the TLB cache?
- Explain the steps taken by the OS after a page fault.
- A 32-bit address uses 4 KiB pages. How many bits are used for the page offset?
- Distinguish an exception, an interrupt, and a trap.
- Why does the processor switch to kernel mode for a system call?
- List the main steps of an interrupt service routine.
- Explain two benefits and one cost of virtualization.
Answer Key
- Time-sharing or multiprogramming.
- Type 1 runs directly on hardware; Type 2 runs as an application on a host OS.
- It maps virtual page numbers to physical frame numbers and stores protection/status bits.
- Recent virtual-to-physical address translations.
- Save context, identify the missing page, choose a frame, write back a dirty victim if needed, load the page, update the page table/TLB, and restart the instruction.
- 12 bits, because 4 KiB = 2^12 bytes.
- An exception is synchronous and instruction-related; an interrupt is asynchronous and external; a trap is a deliberate synchronous software event.
- Kernel mode is required for protected operations such as device access and memory management.
- Save state, identify and acknowledge the source, dispatch to the handler, perform short service work, clear the source, restore state, and return.
- Benefits include isolation, sharing, portability, and efficient utilization. A cost is translation, scheduling, or I/O overhead.