What would happen if there were no "INTERRUPTS" in a computer?

Discussion in 'OT Technology' started by SpunkyXL, Apr 5, 2004.

  1. SpunkyXL

    SpunkyXL OT Supporter

    Joined:
    May 23, 2003
    Messages:
    15,400
    Likes Received:
    9
    Location:
    NYC
    Hey,

    What would happen to how the computer functions of there were no "interrupts? Professor asked this question in class, and no one answered.. He was kinda pissed..LOL
     
  2. panzerfaust

    panzerfaust New Member

    Joined:
    Oct 13, 2003
    Messages:
    1,604
    Likes Received:
    0
    Location:
    Far far away
    you would have linear processing
     
  3. crotchfruit

    crotchfruit Guest

    LOL!! HAHA omghi2u!!~`11oneone

    generally speaking, interrupts are a means for hardware to push events into the process stream. this is much more effecient than having the cpu constantly polling the status of said hardware.

    consider these two options:
    1) the keyboard notifies the cpu only when a key is pressed
    2) every microsecond the cpu asks the keyboard if a key has been pressed

    if one key is pressed in a second, you've wasted a million operations polling the keyboard (in option 2, w/o interrupts) instead of just having it notify you once (option 1, w/ interrupts).
     

Share This Page