Solution
1.14)
An interrupt is a hardware generated change of flow within the system.
An interrupt handler is summoned to deal with the cause of the interrupt; control is then returned to the interrupted context and instruction.
A trap is a software generated interrupt.
An interrupt can be used to signal he completion of an I/O(Input/Output) to obviate the need for device polling.
A trap can be used to call operating system routines or to catch arithmetic errors.
---
1.15)
f. Magnetic Tapes-slowest
c. Optical Disk
a. Hard-disk Drives
e. Nonvolatile Memory
d. Main Memory
g. Cache
b. Registers-fastest
---
all the best
1. (5 points) 1.14 What is the purpose of interrupts? What are the differences between a...
What is the purpose of interrupts? How does an interrupt differ from a trap? Can traps be generated intentionally by a user program? If so, for what purpose?