Preview

06 - Interrupts and ISR in the FDE

 1. We, as humans, are interrupted all the time. If someone pokes us, we stop what we're doing. Similarly, an interrupt is…

  All of the above are valid statements

  a request for attention for CPU time

  a signal that make the OS aware of an issue so it can decide what course of action to take.

  a signal sent from hardware (and also from software) to the CPU

 2. Group #1 in this list provides examples of:
#1==================
Reset Button pressed
Power Supply failure
Power-down command (screen off, hibernate etc)
These send a physical signal to the CPU via the interrupt chip.

#2==================
Software is also allowed to issue interrupts to the CPU. 
For example software has detected that an error has occurred and 
will issue a software interrupt for the CPU to run some instructions
 to try to clear the error. 

#3==================
Some programs trigger a 'timer interrupt' for example a data-logging 
application that *has* to read an input sensor every 1 second.
Or perhaps a screen recording application that has to read the next 
screen update.

#4==================
Devices such as the keyboard and mouse – key presses, movements, 
clicks etc. Other Input - Output devices include
Hard Disk – Request to read or write data
Optical Disk
Printer
Graphics tablet

  Program/Software interrupts

  Timer interrupts

  Hardware commands /interrupts

  Input / Output Device interrupts

 3. Group #2 in this list provides examples of:
#1==================
Reset Button pressed
Power Supply failure
Power-down command (screen off, hibernate etc)
These send a physical signal to the CPU via the interrupt chip.

#2==================
Software is also allowed to issue interrupts to the CPU. 
For example software has detected that an error has occurred and 
will issue a software interrupt for the CPU to run some instructions
 to try to clear the error. 

#3==================
Some programs trigger a 'timer interrupt' for example a data-logging 
application that *has* to read an input sensor every 1 second.
Or perhaps a screen recording application that has to read the next 
screen update.

#4==================
Devices such as the keyboard and mouse – key presses, movements, 
clicks etc. Other Input - Output devices include
Hard Disk – Request to read or write data
Optical Disk
Printer
Graphics tablet

  Input / Output Device interrupts

  Program/Software interrupts

  Hardware commands /interrupts

  Timer interrupts

 4. Group #3 in this list provides examples of:
#1==================
Reset Button pressed
Power Supply failure
Power-down command (screen off, hibernate etc)
These send a physical signal to the CPU via the interrupt chip.

#2==================
Software is also allowed to issue interrupts to the CPU. 
For example software has detected that an error has occurred and 
will issue a software interrupt for the CPU to run some instructions
 to try to clear the error. 

#3==================
Some programs trigger a 'timer interrupt' for example a data-logging 
application that *has* to read an input sensor every 1 second.
Or perhaps a screen recording application that has to read the next 
screen update.

#4==================
Devices such as the keyboard and mouse – key presses, movements, 
clicks etc. Other Input - Output devices include
Hard Disk – Request to read or write data
Optical Disk
Printer
Graphics tablet

  Input / Output Device interrupts

  Program/Software interrupts

  Hardware commands /interrupts

  Timer interrupts

 5. Group #4 in this list provides examples of:
#1==================
Reset Button pressed
Power Supply failure
Power-down command (screen off, hibernate etc)
These send a physical signal to the CPU via the interrupt chip.

#2==================
Software is also allowed to issue interrupts to the CPU. 
For example software has detected that an error has occurred and 
will issue a software interrupt for the CPU to run some instructions
 to try to clear the error. 

#3==================
Some programs trigger a 'timer interrupt' for example a data-logging 
application that *has* to read an input sensor every 1 second.
Or perhaps a screen recording application that has to read the next 
screen update.

#4==================
Devices such as the keyboard and mouse – key presses, movements, 
clicks etc. Other Input - Output devices include
Hard Disk – Request to read or write data
Optical Disk
Printer
Graphics tablet

  Hardware commands /interrupts

  Program/Software interrupts

  Input / Output Device interrupts

  Timer interrupts

 6. When an interrupt occurs, a ___________________or, in the case of a software interrupt, a flag is set.

  power off button is switched off

  signal is sent to the CPU via a control bus

  signal is sent directly to the operating system via the RAM

  None of the above

 7. After the interrupt signal has been sent,

  None of the above

  A special register, held in the RAM, is updated and then switches off the machine

  A special register, known as the interrupt register, is then updated by flipping a bit to 1.

  A special register, known as the program counter, is updated by setting it to zero

 8. It is the job of the CPU and not of the OS to decide WHICH interrupt will be handled
Note: This question is asked because it is possible to register more than one interrupt at once.

  TRUE

  FALSE

 9. The OS can chose to ignore interrupts and this is called 'masking'

  FALSE

  TRUE

 10. Keyboard interrupts can be postponed without too much worry where as interrupts such as hardware power off …

  must be put to the back of the list

  must be dealt with immediately

  None of the above

  must be completely ignored

 11. When an interrupt occurs, the CPU has the role of informing the OS rather than dealing with the interrupt itself.

  TRUE

  FALSE

 12. Hardware and software can trigger interrupts and these are then dealt with by calling an
ISR.png

  internet service provider

  interrupt sent roster

  interrupt sentdex register

  interrupt service routine

 13. A multitasking operating system can run more than one process. Interrupts are used to allow the process to continue

  TRUE

  FALSE

 14. When an interrupt is received, a program called an _____ will run

  Interrupt Service Routine (ISR)

  program counter driver

  RAM counter

  vector routine

 15. The ISR is held in _______________ to indicate the item in the stack to be executed next.

  stack memory that uses a pointer

  stack memory that uses an operating system with a program counter

  queue memory that uses a RAM slot

  queue memory that uses a pointer

 16. Some processes involve a delay, for example printing a document: the computer can send the data faster than the printer can process it. Fill in the blanks
A small area of memory called a _____allows printing to appear continuous. As the buffer empties, an interrupt is sent for more data to be sent.

  program counter

  ROM chip

  buffer

  interrupt routine provider

 17. …………………….are used to indicate when an interrupt has occurred

  flags

  interrupt routine provider

  buffer

  ROM chip

 18. Interrupts use ……………... to indicate that a process is more critical so should be handled first

  buffers

  priorities

  flags

  program counters

 19. When an interrupt is processed the following needs to happen

  2 - Execute the ISR

  All of the listed options (1,2,3) need to happen in the specified order (i.e 1,2,3)

  1 - Save the processor state

  3 - Restore the processor state

 20. It is possible for interrupts to be interrupted by interrupts.

  FALSE

  TRUE