query VIC status register for interrupt source choose and process interrupt make current task ready schedule next task