You are in the Java forum. Why don't you ask this question in the C/C++ forum? I bet you will get a better answer there.
Also specify your OS (Linux, Windows etc.) and what type of interrupts (hardware interrupts or software-interrupts and their type, like SIGINT etc.)
They are all completely different matters.
Comment