An interrupt handler is just a routine containing a sequence of operations. Each of these may request input and output while running.