answersLogoWhite

0


Best Answer

Interrupt is the signal generated by the input/output devices in order to take the attention of the processor.

When the processor receives the interrupt signals it checks the priority status and finish the current fetch and execute cycle and (if the priority status is high) allow the input/output device to process their tasks. Then previous fetch and execute cycle is continued. This is called interrupt service routine.

The programs are broken down in to small sub programs which are called subroutines. Then the program reusability, readability, maintainability ...etc will be increased.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between interupt and subroutine?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is main difference between macro and subroutins?

marco expand where it invoked ,subroutine will go where the subroutine is defined....


Difference between interrupt and subroutine in computer?

interrupt is a signal caused by I/O devices where as subroutine is a part of the program which is excuted rapidly


3 What is the difference between a function procedure and a subroutine procedure?

Both a function and a subroutine are examples of out-of-line execution calls to code. The main difference is that a function call can be part of an expression and returns a value, whereas the subroutine can be called standalone and does not return a value.


Which program segment at run time is used to store interrupt and subroutine return addresses?

If this is a homework assignment, you really should try to answer it on your own first, otherwise the value of the reinforcement of the lesson due to actually doing the assignment will be lost on you.Interrupt and subroutine return addresses are stored on the stack, so the stack segment is used for interupt and subroutine addresses.


Difference between delay subroutine and ordinary subroutine in context of 8085?

a subroutine is a portion of the code within a larger program which performs a specific function and is independent of remaining code.....delay routines are subroutines used for maintaining the timings of various operations in microprocessor


What are subroutine linkages?

The Mechanism that makes possible to transfer control between the calling program and Subroutine is reffered to as SUBROUTINE LINKAGE


Difference between subroutine and function?

Both A function and a Sub carry out a procedure, but only A function returns a result while a Sub does not return a result.


What is difference between oval and circle symbol in flowchart?

An oval is used for an endpoint (Start/End/Return). A circle is used as a connector, for instance, if you get to a point where to want to run a subroutine, put a circle connector with a label (a letter, for instance). At the beginning of that subroutine, start it with the same lettered circle connector.


What is the difference between program and procedure?

A procedure is a subroutine that can be called from another part of the program. Procedures can be as small as 2 lines (the definition line, and then the procedure itself), or consist of hundreds of lines.


What is subroutine in java?

Subroutine mean what (in java)?


Similarities between macro and subroutine?

Both Macro & Subroutine are set of instructions that are called several times to perform a specific task. They act like functions that have a sequence of instructions stored and is often called by the program.


What is different between a subroutine and function in vb.net?

Function returns a value but sub procedure do not return a value.