1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Example of interrupts

Discussion in 'Operating System' started by Sage_sage, Feb 21, 2012.

  1. Sage_sage

    Sage_sage New Member

    Joined:
    Feb 21, 2012
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    0
    can someone give example of a computer system where interrupts are not appropriate at all.
     
  2. _eb75_

    _eb75_ New Member

    Joined:
    Jun 18, 2012
    Messages:
    16
    Likes Received:
    6
    Trophy Points:
    0
    Location:
    www.isosika.net
    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:

    Code:
    loop( forever)
    {
    [INDENT] read (keyboard buffer);
     if(keyboard pressed) write (char to display);
     read  (pressure measurement1) ;
     if(pressure measurement1 too high) open_valve(1);
     read(temperature1)
     if(temperture1 too low)
    
    ................
    [/INDENT]
    }
    So, we were replacing interrupts with polling.
     

Share This Page