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

Unix , A friend has promised to log in at a particular time. However, he ne...

A friend has promised to log in at a particular time. However, he needs to be contacted as soon as he logs in. The shell script checks after every minute whether he has logged in o

Introduction to microprocessors, Let us consider the pining details of the ...

Let us consider the pining details of the 68HC11 as shown below.     Each pin has a defined function, some easy, some complex. A microprocessor designer should understan

Which are the different states of a process, Which are the different states...

Which are the different states of a process?   Different status of a process is: New: When the process is created. Running: When instructions are executed. Wait

Benefits of dynamic linkage of libraries, Q. What are three benefits of dyn...

Q. What are three benefits of dynamic (shared) linkage of libraries compared to static linkage? What are two situations where static linkage is preferable? Answer: The

Difference among pre-emptive and non pre-emptive scheduling, Q. Define the ...

Q. Define the difference among pre-emptive and non pre-emptive scheduling. Answer: Pre-emptive scheduling permits a process to be interrupted in the midst of its execution ta

Explain linked allocation, Linked allocation With linked allocation, ev...

Linked allocation With linked allocation, every file is a linked list of disk blocks; the disk blocks might be scattered anywhere on the disk. The directory has a pointer to th

Explain disadvantages of the two-level directory, How do we overcome the di...

How do we overcome the disadvantages of the two-level directory? Give links from one user directory to another, creating path names; system files become available by letting th

Explain briefly the working of semaphore with example ?, Explain briefly th...

Explain briefly the working of semaphore with example ? The E.W. Dijkstra (1965) abstracted the key idea of mutual exclusion in his concepts of semaphores. Definition A s

Define process swapping , Swapping : Whole process is moved from the swap...

Swapping : Whole process is moved from the swap machine to the main memory for execution. Process size must be equal or less than to the used main memory. It is easier to exe

Perform alpha-beta pruning on the following tree, Perform alpha-beta prunin...

Perform alpha-beta pruning on the following tree. Put an "X" over each node that is pruned. Put the final value next to all other nodes. Indicate which action MAX should take: to B

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