Computer engineering

An interrupt service routine records that a button event occurred. Which design practice best reduces the chance that handling this event delays other time-sensitive work?