How to know that I may or may not use interrupt?