Thread: How events are implemented in any OS?

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    175

    How events are implemented in any OS?

    Hello All,

    Just curious to know, How events are implemented in any OS? Meaning, what happens when signal an event or while waiting for an event. What OS will be doing?

    Please let me know.
    Girish

  2. #2
    Quote Originally Posted by Roaring_Tiger
    Just curious to know, How events are implemented in any OS? Meaning, what happens when signal an event or while waiting for an event. What OS will be doing?
    Interrupts, callbacks, FIFOs... who knows. It's a system issue...

    What exactly is your question about the C-language ?
    Emmanuel Delahaye

    "C is a sharp tool"

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I very much doubt the same technique is used in all the world's operating systems
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    175
    It is in C section as most of OS are also developed in C language. If I want to implement events in my system, how do I do using C?

    Interrupts, callbacks, FIFOs... who knows. It's a system issue..

    Can you please elaborate this?

    Thanks in advance...

  5. #5
    Quote Originally Posted by Roaring_Tiger
    It is in C section as most of OS are also developed in C language. If I want to implement events in my system, how do I do using C?
    You certainely use C + extensions to drive the hardware, the interrupts, the processor condition etc. There is no way to write a full system in standard C.
    Interrupts, callbacks, FIFOs... who knows. It's a system issue...
    Can you please elaborate this?
    Do you want a CS course for free? Is your Google broken ?

    If you want to go inside a system, you should read some books about it. Actually, it's a full time occupation...
    Emmanuel Delahaye

    "C is a sharp tool"

  6. #6
    Registered User
    Join Date
    Feb 2003
    Posts
    175
    List me OS which are completely developed in C++...

  7. #7
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    Quote Originally Posted by Roaring_Tiger
    List me OS which are completely developed in C++...
    I think you misunderstand. He said "C + extensions"...not C++. He's just saying you can't do the whole thing in a high level language. There's some assembly-age needed.
    If you understand what you're doing, you're not learning anything.

  8. #8
    Quote Originally Posted by Roaring_Tiger
    List me OS which are completely developed in C++...
    sez who ?
    Emmanuel Delahaye

    "C is a sharp tool"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Detecting if OS is Windows???
    By Ktulu in forum Windows Programming
    Replies: 2
    Last Post: 11-19-2006, 02:49 AM
  2. a simple OS
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-06-2004, 10:47 PM
  3. seismic events program
    By santaclaus in forum C Programming
    Replies: 16
    Last Post: 11-23-2003, 03:23 PM
  4. Linux OS to Windows OS code
    By sw9830 in forum C Programming
    Replies: 2
    Last Post: 02-28-2003, 03:11 PM
  5. How do they compile code for an OS ?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 49
    Last Post: 03-28-2002, 12:16 AM