A programming concept where the program flow is based on events. The main way it works is that an event or an action takes place and a specific response is generated based on that event.
Many GUIs are event-driven and have a main UI loop that runs and receives events, such as mouse clicks, and then processes them.
Another example is interrupts (a signal to a component that indicates a change or response is needed). One example is hardware interrupts such as powering on/off a computer.
Asynchronous APIs and function callbacks could be used to implement event-driven programming.
No comments:
Post a Comment