interrupt handling is tricky code, a combination art and science. it has to handle spontaneous events yet process routine tasks during idle time. and itself takes time. predictive algorhythms can be used for scheduling availability.

most everything uses interrupt handlers in preparation for an event. the key is not to use it during an event. when an event occurs it deserves due attention, a new priority. reserve time to re-evaluate, re-consider.

remember the triad of plan for the worst, expect the best, reconsider the results ?