What is the difference between a software interrupt and a sub routine call?
Answers
Answered by
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
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
English,
5 months ago
Geography,
5 months ago
Business Studies,
5 months ago
Computer Science,
11 months ago
Economy,
1 year ago