Event-driven programming
Many programs must react in some way to events which
come from their environment.
Example 1 : Graphical User Interfaces respond
to mouse-clicks and keystrokes
Example 2 : Programs which run over the Internet
respond to receiving network packets
Example 3 : Robots respond to signals detected