Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


distinguish between interrupts and exceptions?

Answers were Sorted based on User's Feedback



distinguish between interrupts and exceptions?..

Answer / mohit chandila

An Interrupt is an interface to external stimulii. The
System interacts with the user or external devices via
interrupts.

An Exception on the other hand is a condition that is
strange enough for the system to handle appropriatly. It is
produced within the system. It can be a result of poor code
or a limitation of the system itself such as the "Divide by
Zero Error"

Is This Answer Correct ?    15 Yes 1 No

distinguish between interrupts and exceptions?..

Answer / roy

An interrupt is an asynchronous signal from hardware
indicating the need for attention or a synchronous event in
software indicating the need for a change in execution. A
hardware interrupt causes the processor to save its state
of execution via a context switch, and begin execution of
an interrupt handler. Software interrupts are usually
implemented as instructions in the instruction set, which
cause a context switch to an interrupt handler similar to a
hardware interrupt. Interrupts are a commonly used
technique for computer multitasking, especially in real-
time computing. Such a system is said to be interrupt-
driven. An act of interrupting is referred to as an
interrupt request ("IRQ").

Exceptions are conditions that changes the normal flow of
execution. In the context of normal flow, exceptions can be
categorised as error situations. Depending upon the program
exception conditions may need to be handles in the
software.

In a way Interrupts and Exceptions can be related to each
other, in the fact that certain exception handling may
result in generating interrupts. In otherwords certain
interrupts can be manifestation of certain error/exceptions.

Is This Answer Correct ?    13 Yes 2 No

Post New Answer

More Unix Commands Interview Questions

How do you grep recursively?

0 Answers  


What do know about tee command?

0 Answers  


What is "type" command in unix?what is the functionality??

2 Answers  


Will rm -r* removes hidden files?

10 Answers  


What is an Environment Variable?

4 Answers   CTS,


What is the command to check ports active in UNIX?

4 Answers   Accenture, IBM,


Through which command will redirect output to bOth screen and files at the same time?

3 Answers  


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

0 Answers  


what are processor execution levels and priorities?

2 Answers   Infosys,


Which command will you use to change the permissions on file?

7 Answers  


How to copy multiple files and directories into some other directory?

4 Answers  


what is the cmd to remove the comment lines from a file and to display the original text without comments? thanks in advance......

5 Answers  


Categories