Sometimes the interrupt handler adds longer tasks to be executed by the main loop .
Later , after the interrupt handler has finished , these tasks are executed by the main loop .