FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMPUTER OPERATING SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Interrupts can be generated by
A
Hardware:e.g. power button pressed.
B
Software:e.g. a program needs to run a routine (for example, to automatically save a document being edited by a user).
C
Time triggered:e.g. in data logging applications.
D
Peripheral:e.g. user has moved the mouse.
Explanation: 

Detailed explanation-1: -A software interrupt, also called a processor generated interrupt, is generated by the processor executing a specific instruction. Common processor-generated-interrupts are the divide-by-zero exception and the general-fault or page-fault exception.

Detailed explanation-2: -Interrupt is the method of creating a temporary halt during program execution and allows peripheral devices to access the microprocessor. The microprocessor responds to that interrupt with an ISR (Interrupt Service Routine), which is a short program to instruct the microprocessor on how to handle the interrupt.

Detailed explanation-3: -1. Which interrupts are generated by the on-chip peripherals? Explanation: The internal interrupts are generated by the serial and parallel ports which are on-chip peripherals.

Detailed explanation-4: -Yes. How will depend on which kind of mouse you are using. But for USB mice, the most common kind, it will produce a USB Interrupt Packet every time it moves.

There is 1 question to complete.