| |
| | Event-driven programming - Wikipedia, the free encyclopedia |
 | | Event-driven programs typically consist of a number of small programs called event handlers, which are to be called in response to external events, and a dispatcher, which calls the event handlers, often using an event queue to hold unprocessed events. |
 | | At the lowest level, interrupt handlers act as direct event handlers for hardware events, with the CPU hardware performing the role of the dispatcher. |
 | | Because the code for checking for events and the main loop do not depend on the application, many programming frameworks take care of their implementation and expect the user to provide only the code for the event handlers. |
| en.wikipedia.org /wiki/Event-driven_programming (1409 words) |
|