How events are implemented in any OS?

This is a discussion on How events are implemented in any OS? within the C Programming forums, part of the General Programming Boards category; Hello All, Just curious to know, How events are implemented in any OS? Meaning, what happens when signal an event ...

  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
    Helper
    Join Date
    Jun 2004
    Posts
    255
    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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
    Helper
    Join Date
    Jun 2004
    Posts
    255
    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,159
    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
    Helper
    Join Date
    Jun 2004
    Posts
    255
    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, 01: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, 02:23 PM
  4. Linux OS to Windows OS code
    By sw9830 in forum C Programming
    Replies: 2
    Last Post: 02-28-2003, 02: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-27-2002, 11:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21