Thread: interupt

  1. #1
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953

    interupt

    What are interupts, and what are they used for?

    Thanks for help?

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Some of the more common ones :

    "...ahem, as I was saying..."
    "...y'know that reminds me of a time when..."
    and:
    "...excuse me, but can I say something?..."

    Seriously, though - don't you ever do any research

    Do that first and then ask specific questions!

    Generally speaking, an interrupt is a bios signal that interupts the CPU's activity in order to tell it something important. There are up to 256 interupts possible, and each can have 256 (?) unique "services". In practice much fewer interupts are interupted. Higher priority interupts can interupt lower priority interupts. Examples are like the ones used by functions like kbhit(), InvalidateRect(), Sleep(), etc. For instance, ever noticed that when you dial into the internet with a modem, the first few seconds your mouse get's "stuck"? That's because the modem's interupt blocked other CPU activity...

    Anyway you need to read more about this in more detail, obviously. Check the internet and your favorite bookstore...
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    Well, thanks for the answer...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 16450 UART interupt issue
    By abachler in forum Networking/Device Communication
    Replies: 4
    Last Post: 04-25-2008, 12:50 PM
  2. Assembly Interupt in C++
    By histevenk in forum C++ Programming
    Replies: 9
    Last Post: 12-15-2007, 07:08 PM
  3. Key hit interupt?
    By SwarfEye in forum C Programming
    Replies: 2
    Last Post: 09-26-2006, 12:02 AM
  4. PC104 Serial Port Programming Problem
    By outerspace in forum C Programming
    Replies: 6
    Last Post: 11-09-2005, 07:07 PM
  5. Memory-Resident programs and Sys files
    By Powerfull Army in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-15-2002, 09:13 PM