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 are the methods for handling deadlocks?, What are the methods for hand...

What are the methods for handling deadlocks ? The technique for handling the deadlocks are: We are able to use protocol to prevent or avoid the deadlock, make sure tha

What is turnaround time, What is turnaround time? Turnaround time is th...

What is turnaround time? Turnaround time is the interval from the time of submission to the time of completion of a process. It is the sum of the periods exhausted waiting to g

What is belady anomaly, What is Belady's anomaly When plotting on a g...

What is Belady's anomaly When plotting on a graph the page faults versus the number of available frames. We notice that the number of faults for four frames is greater than th

Explain hierarchical paging method, Hierarchical paging method Most mo...

Hierarchical paging method Most modern computer systems maintain a large logical-address space. In this situation the page table itself turns into excessively large. To remedy

Define state that process must obtain all resources it needs, Before procee...

Before proceeding with its execution, every process must obtain all the resources it needs is called Hold and wait

How is process management done in multiprocessing systems, How is process m...

How is process management done in multiprocessing systems ? There are two accost for the process management in multiprocessor systems. Master-slave configuration Sy

Define criterion for classification of data structures, Define what can be ...

Define what can be used as a criterion for classification of data structures utilized in language processing              Answer: nature of a data structure, lifetime of a dat

What are the steps followed in testing, What are the steps followed in test...

What are the steps followed in testing? i. Unit testing - The individual components are tested in this type of testing. ii. Module testing - Related collection of independen

What is symmetric multiprocessing, Symmetric multiprocessing To get ma...

Symmetric multiprocessing To get maximum reliability and efficiency a mode of function called as symmetric multiprocessing is used. In essence, with SMP any program or threads

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