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 the thread local storage (tls), Explain the Thread Local Storage (T...

Explain the Thread Local Storage (TLS)    Windows NT provides unique functions for per-thread data management. Thread local storage (TLS) is a concept defined in NT so develope

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 the main problem with the fcfs scheme, Question : a) Consider ...

Question : a) Consider table 1.0 below, assume the processes arrived in the order P 1 , P 2 , P 3 , P 4 at time shown and need the indicated burst time (both in milliseconds)

Mutual exclusion variable, Since each thread has its own processing space t...

Since each thread has its own processing space therefore communication between threads will need to be done through a common global variable. Since multiple threads can access the

Logic gates, Determine the equation for the y and truth table for the circu...

Determine the equation for the y and truth table for the circuits

Explain lru approximation page replacement in detail, LRU approximation pag...

LRU approximation page replacement In this we utilize the reference bit associated with the page entry to choose a page to be removed. The various algorithms used for the imp

Unsafe state, discuss unsafe state in operating system

discuss unsafe state in operating system

How is memory management done using bit maps?, How is memory management don...

How is memory management done using bit maps? A bit map is here in this we signify the bit value as 0 or 1. 1-hole 0-process In this we are able to represent the proce

What is meant by the term affinity in processor sheduling, Question: (a...

Question: (a) Answer the following questions based on the code snippet below. 1. int main (int argc, char *argv[]) 2. { 3. 4. pid_t processId; 5. 6. processId =

What are the various scheduling criteria for cpu scheduling, What are the v...

What are the various scheduling criteria for CPU scheduling? The various scheduling criteria are CPU utilization

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