Question: what is the difference between hardware interrupt and software interrupt?
Answer: A hardware interrupt is triggered by hardware (typically some peripheral external to the CPU such as a network adapter, sound chip, etc.) whereas a software interrupt is caused by software itself, much like a function call. The only difference is how they are triggered.