What is an event handler?

An event handler is a piece of code that executes when an event is initiated. When an event is triggered, Open Server places the event and the active thread on the run queue. The thread then executes a routine that processes the event. This routine is called an event handler.