Skip to main content

All Questions

Filter by
Sorted by
Tagged with
58 votes
8 answers
9k views

Are events only used for GUI programming?

Are events only used for GUI programming? How do you handle in normal backend programming when something happens to this other thing?
user3093620's user avatar
66 votes
6 answers
24k views

Is an event loop just a for/while loop with optimized polling?

I'm trying to understand what an event loop is. Often the explanation is that in an event loop, you do something until you're notified that an event has occurred. You then handle the event and ...
TheMeaningfulEngineer's user avatar
1 vote
3 answers
2k views

Do all programs run in a loop? [closed]

I was wondering whether all programs run in a Loop, checking for variable changes then acting upon said changes followed by another Loop. Or do they run in a While statement, waiting for a variable to ...
JosephGarrone's user avatar
1 vote
2 answers
243 views

Where is interface between button click and event raising defined

When I click on button, might be in windows apps, web apps, etc it has some animation to actually see it clicked and event is raised in background. I've knowledge of events and its attaching to button ...
Sunny's user avatar
  • 945