Computer Science, asked by vidyathangjam9972, 11 months ago

What is the difference between a software interrupt and a sub routine call?

Answers

Answered by Anonymous
0

Answer:

Interrupts are commonly used by hardware devices to indicate electronic or physical state changes that require attention. Interrupts are also commonly used to implement computer multitasking, especially in real-time computing. while a subroutine is a sequence of program instructions that performs a specific task, packaged as a unit. This unit can then be used in programs wherever that particular task should be performed.

hope it will help you ❣️

Answered by N3KKI
3

Simply, a subroutine is code you write and call as required, an interrupt is system bound and cannot be called by the user but occurs when something happens (sources are hardware, software and CPU) that requires immediate attention.

Similar questions