Why Modern OS are interrupt driven?Give an example

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

600


What is the difference between union and structure in c?

576


What is variables in c?

607


Explain what is the difference between a string and an array?

640


Why does not c have an exponentiation operator?

629






How do I use strcmp?

639


What is c variable?

552


What are enums in c?

659


In a switch statement, explain what will happen if a break statement is omitted?

637


Differentiate between a structure and a union.

766


Why is it that not all header files are declared in every C program?

683


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

610


What is string function in c?

540


How can I handle floating-point exceptions gracefully?

634


What is getch?

633