Go4Expert (http://www.go4expert.com/)
-   Operating System (http://www.go4expert.com/forums/operating-system-forum/)
-   -   Example of interrupts (http://www.go4expert.com/forums/example-of-interrupts-t27864/)

Sage_sage 21Feb2012 23:10

Example of interrupts
can someone give example of a computer system where interrupts are not appropriate at all.

_eb75_ 18Feb2013 18:39

Re: Example of interrupts
Nowadays this question can seem odd. Computer system software architectures are heavily depending on interrupts and systems are far too complicated to build up without interrupts.

But if we go back in time some 40 years we had simple computer systems without interrupts. Some programmable automation systems. One program (we can call it operating system or application) was looping all the time in one big loop and doing some tasks whole time. For example:


loop( forever)
read (keyboard buffer);
 if(keyboard pressed) write (char to display);
 read  (pressure measurement1) ;
 if(pressure measurement1 too high) open_valve(1);
 if(temperture1 too low)


So, we were replacing interrupts with polling.

All times are GMT +5.5. The time now is 02:15.