Ask Question

What is the purpose of interrupts? What are the differences betweena trap and an interrupt? Can traps be generated internally by ausers program? If so, for what purpose?

+1
Answers (1)
  1. 20 September, 17:10
    0
    An interrupt as the name suggests interrupts the present execution so focus on some other execution. It is a signal generated by hardware or software telling the system it needs attention.

    The difference between a trap and an interrupt is that a trap is an interrupt emitted by software. While an interrupt is generated by computer hardware also.

    Yes traps can be used internally.

    Sometimes they are used to to call the OS (operating system) routines or to catch arithmetic errors.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the purpose of interrupts? What are the differences betweena trap and an interrupt? Can traps be generated internally by ausers ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers