What is the difference between interrupt, trap and exception?1)Interrupt: An interruption initiated by hardware. Most of the time, the CPU can only process a single instruction at a time. When the CPU is occupied by a certain process, interrupts are used to make the CPU handle other processes. Interrupts are typicallygenerated by I/O devices, timers, and timing events