English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

4 answers

A subroutine is a part of a program that will be called by another part of the program.

Example: you may write a subroutine that display a message. Each time your program needs to display something it will call the subroutine.

An interrupt service routine is a part of the program that is called by the an interrupt.

Example: you may write an interrupt service routine that will handle the key press on the keyboard. It will be called each time an interrupt comes from the keyboard input.

2006-10-05 08:25:32 · answer #1 · answered by cd4017 4 · 0 0

an interrupt service routine is a special sort of subroutine called as a result of a hardware interrupt.

2006-10-05 00:15:56 · answer #2 · answered by amania_r 7 · 1 0

a subroutine is a shared code tht performs well - defined function (generic/specific)
while an interrupt is a code tht is called when something happens like the clock ticks

2006-10-05 00:20:59 · answer #3 · answered by WhtAPerson 2 · 0 0

subroutine runs when you call it,
ISR runs when a certain signal occur.

2016-05-10 08:18:28 · answer #4 · answered by ? 1 · 0 0

fedest.com, questions and answers