event processing is a multitasking technique in which a program learns of events and responds to them.
In Tcl, channel events and after events are sent to the notifier. Tk sends windowing system events to the notifier. The Tcl C API provides means for any extension to create its own event types, and also to communicate and process events.