FUNDAMENTALS OF COMPUTER

OPERATING SYSTEMS FOR COMPUTERS

COMPUTER OPERATING SYSTEMS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
when an ____ occurs, the CPU will, on the next instruction cycle, automatically run some special OS code that responds to it. The current running process will be puased/stopped so that this event can be handled
A
allocation
B
OS task
C
OS buffer
D
interrupt
Explanation: 

Detailed explanation-1: -Whenever an interrupt occurs, it causes the CPU to stop executing the current program. Then comes the control to interrupt handler or interrupt service routine. When the interrupt handler is finished, CPU transfers control back to the originally executing program.

Detailed explanation-2: -When an interrupt occurs, it causes the CPU to stop executing the current program. The control then passes to a special piece of code called an Interrupt Handler or Interrupt Service Routine. The interrupt handler will process the interrupt and resume the interrupted program.

Detailed explanation-3: -The CPU receives the interrupt signal. An exact copy of all of the registers in the CPU at that moment in time are stored in ‘the stack’ in primary memory so that the CPU can return to this exact state once it has finished dealing with the interrupt. The CPU then starts executing the mouse interrupt service routine.

Detailed explanation-4: -Whenever an interrupt occurs, the controller completes the execution of the current instruction and starts the execution of an Interrupt Service Routine (ISR) or Interrupt Handler. ISR tells the processor or controller what to do when the interrupt occurs.

There is 1 question to complete.