The method used to communicate events that need special attention to the cpu are known as "interrupt".
An interrupt refers to a signal to the processor transmitted by equipment or programming demonstrating an occasion that necessities quick consideration. An interrupt on cautions the processor to a high-need condition requiring the interruption of the present code the processor is executing.