Why interrupt can be used, Operating System

Assignment Help:

Why interrupt can be used?

The majority of the different parts of the PC need to send information to and from the processor and they expect to be able to get the processor's attention when they require to doing this. The processor has to balance the information transfers it gets from different parts of the machine and ensure they are handled in an organized fashion. There are two essential ways that the processor could do this:

  • Polling: The processor could acquire turns going to each device and asking if they have anything they require it to do. This is called as polling the devices. In a few situations in the computer world this technique is used, though it is not used by the processor in a PC for a couple of basic reasons. One reason is that it is wasteful obtainable around to all the devices constantly asking if they need the attention of the CPU wastes cycles that the processor could be doing something useful. This is particularly true for the reason that in most cases the answer will be "no". One more reason is that different devices need the processor's attention at differing rates the mouse wants attention far less frequently than say the hard disk (when it is actively transferring data).

 

  • Interrupting: The other way that the processor is able to handle information transfers is to let the devices request them when they need its attention. This is the foundation for the use of interrupts. When a device has data to transfer it produce an interrupt that says I need your attention now please. The processor after that stops what it is doing and deals with the device that requested its attention. It actually is able to handle many such requests at a time using a priority level for every to decide which to handle first.

 


Related Discussions:- Why interrupt can be used

What is segmentation?, What is segmentation? In a segmented memory mana...

What is segmentation? In a segmented memory management scheme a programmer views a program to be collection of program components called as segments. Every segment is a logical

Define input - output operations, Q. Define Input - Output operations? ...

Q. Define Input - Output operations? Serial lines, Disks, tapes and other devices should be communicated with at a very low level. The user require only specify the device and

Direct communicatio., Consider a scenario of post mailbox, there are two pr...

Consider a scenario of post mailbox, there are two processes named sender S and receiver R. Both processes can communicate with each other by name along with message. You need to I

Question, A paper mill produces two grades of paper viz., X and Y. Because ...

A paper mill produces two grades of paper viz., X and Y. Because of raw material restrictions, it cannot produce more than 400 tons of grade X paper and 300 tons of grade Y paper i

What is the difference b/w multiprocessing and multitasking, What is the di...

What is the difference between multiprocessing and multitasking? Multi programming means implementing more than one program but here whenever the processor is idle during execu

Linux os, Introduction of linux

Introduction of linux

Describe services of operating systems, (a) Describe services of operating ...

(a) Describe services of operating systems. (b) Differentiate among the short term, medium term and long term scheduling that are given by multi-tasking operating systems.

Student, Explain how the os implements virtual memory phenomenon.

Explain how the os implements virtual memory phenomenon.

How program execute in operating system, Q. How Program execute in operatin...

Q. How Program execute in operating system? Program execution- The operating system fills the contents (or sections) of a file into memory as well as begins its execution. A us

Write a program to demonstrate the memory leak problem, Write a program (wi...

Write a program (with the programming language and on the platform of your choice) to demonstrate the memory leak problem (see http://en.wikipedia.org/wiki/Memory_leak for detail

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd