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

Explain terminal symbols, Explain Terminal Symbols Terminal symbols are...

Explain Terminal Symbols Terminal symbols are literal strings that are forming the input of a formal grammar and cannot be broken down into smaller units with no losing their l

Operating systems concepts, The code should be nicely formatted with plenty...

The code should be nicely formatted with plenty of comments. It should be easy to read, properly The summary section should include three parts: (1) Record the running t

What is the lower bound on the numeral of page faults, Q. Presume that you...

Q. Presume that you have a page-reference string for a process with m frames (initially all empty). The page-reference string has length p along with n distinct page numbers

Define file organization, File Organization     * Sequential     * D...

File Organization     * Sequential     * Direct     * Indexed A file still if it is stored on a magnetic disk or CD-ROM disk may perhaps have a sequential file organiz

Model, list trhe various classification of model and types?

list trhe various classification of model and types?

Explain fifo page replacement in detail, FIFO page replacement This is...

FIFO page replacement This is the easiest page replacement algorithm. Here the 1 st page toward the inside is the 1 st to leave that is the oldest page leaves. To execute th

Calculate the average waiting time, Calculate the Average Waiting Time ...

Calculate the Average Waiting Time CPU burst time points out the time, the process needs the CPU. The subsequent are the set of processes with their respective CPU burst time (

Determine what the expansion of nested macro calls follows, Determine what ...

Determine what the expansion of nested macro calls follows  The expansion of nested macro calls follows the Last in First out (LIFO) rule.

Semaphores, Synchronization can be achieved by means other than locks and c...

Synchronization can be achieved by means other than locks and condition variables. One alternative is semaphores. A semaphore is used to regulate traf?c in a critical section. A se

Explain schemes for defining the logical structure, What are the most commo...

What are the most common schemes for defining the logical structure of a directory? The most common schemes for explaining the logical structure of a directory Single-L

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