For an operating systems project, I need to change the behaviour of the timer interrupt handler. To my understanding so far, there are basically two ways: