Why Modern OS are interrupt driven?Give an example

Answers were Sorted based on User's Feedback



Why Modern OS are interrupt driven?Give an example..

Answer / shankar

An interrupt driven device sends an interrupt request to the computer, which is then serviced by Internet service routine(ISR).
To effectively manage many processes the core of operating system makes use of what is known as interrupts.
This is a signal to a processor indicating that an asynchronous event has occurred. Here the current sequence of instructions is temporarily suspended, and a sequence appropriate to the interruption is started in its place. Its purpose is to alert the operating system when any special event occurs so that it can suspend its current activity and deal appropriately with the new situation
Usually an interrupt gives a signal from a device attached to a computer or from a program within the computer that causes the main program that operates the computer (the operating system) to stop and figure out what to do next. Almost all personal (or larger) computers today are interrupt-driven - that is, they start down the list of computer instructions in one program (perhaps an application such as a word processor) and keep running the instructions until either (A) they can't go any further or (B) an interrupt signal is sensed. After the interrupt signal is sensed, the computer either resumes running the program it was running or begins running another program

Is This Answer Correct ?    21 Yes 9 No

Why Modern OS are interrupt driven?Give an example..

Answer / imrana

os is interrupt driven software this means that if there is no interrupt then the system will be die

Is This Answer Correct ?    10 Yes 2 No

Why Modern OS are interrupt driven?Give an example..

Answer / banavathvishnu

There are 3 types of OS
1. Interrupt driven
2. Polling
3. Event driven

In Interrupt driven OS CPU clock is handed over to
Interrupt only when the interrupt is occured.

In Polling, CPU clock should wait until an event is occured
is very expencise wrt to CPU clock.

Is This Answer Correct ?    16 Yes 19 No

Post New Answer

More C Interview Questions

How can I make it pause before closing the program output window?

0 Answers  


Explain what is #line used for?

0 Answers  


What is the most efficient way to store flag values?

0 Answers  


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side? Upload a C program to demonstrate the behaviour of the game.

2 Answers  


c program to manipulate x=1+3+5+...+n using recursion

2 Answers   Wipro,






How do you print an address?

0 Answers   TCS,


main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

1 Answers   GATE,


What is the difference between Printf(..) and sprint(...) ?

0 Answers   InterGraph,


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

0 Answers  


Write a program to print distinct words in an input along with their count in input in decreasing order of their count

0 Answers  


Program to find the value of e raised to power x using while loop

5 Answers   IBM, N Tech,


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

0 Answers  


Categories