This question bugs me. How event handling systems works?
what i understand is that there is must be a loop that waits for a message or something then activates a portion of a code. I know it is most likely a wrong idea but i need to understand how it works (abstractly)?
if there are diagrams that can explain it that would be good !
If you are asking about events in C# suppose that they are just implementation of
Publisher/Subscriber or Observer patterns.
http://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern
http://en.wikipedia.org/wiki/Observer_pattern
In short, there is no waiting, subscriber just gives to publisher a code (via delegate) to invoke when publisher fires an event.