Answer:
Operating system is the software that is used to control different hardware of computers and handle scheduled tasks.
It also handles the interrupts from some external devices, or from some software. The interrupts are handled through Interrupt service routine. When some external event occurs the following steps has been taken by OS to perform the operation