Quiz# 3: Interrupts

1. Interrupts are

always caused due to an error in execution.
either software or hardware generated.
just a source of interruption in execution of processes.

2. What will happen if an interrupt service routine is not found in its place?

The OS will know it is not there and shut down.
Unpredictable results.

3. What is an interrupt vector?



4. Why should interrupt service routines be as short as possible?



5. A trap occurs

when the OS is trapped in a loop.
when a process is trapped in a loop.
when either there is an error or a signal for a request from a user program.

6. Where are the interrupt service routines in Nachos for software generated interrupts?