While we predominantly associate event driven programs as programs that use a GUI we often overlook the many different uses and examples of event driven programming that we encounter in our day to day lives that don’t use a GUI. If we take a moment to think about our daily routine we could begin to name a few of these. Let’s start with waking up in the morning, most of us have alarm clocks that either let out a noise, or turn the radio on at a time that you have specified. If we make toast, we set the toaster to our preferred pre-set time and let it work away. Most of us drive to work or school and yet we may not consider our cars as having event driven programming, when in fact they are inundated with it. When we come home we might throw our dirty clothes and washing into the washing machine, then perhaps dry them in the tumble drier. All of the items I have mentioned incorporate event driven programming in some way or another, without the use of a GUI. For the benefit of this task I will select two applications of event driven programming for non graphical applications and evaluate their suitability for purpose in our day to day lives.
Let’s start with a security system. There are a lot of different types and levels of security system…show more content… This activation of the security system would cause an event loop to continuously run to wait on any input from the sensors. This time the robber has broken into the bank and is looking about inside, his movement could cause a motion sensor to go off. This is the event. This would then trigger an event handler that could raise a very audible alarm, turn on the emergency lights, lock all the windows and doors and notify the police at the same time. Therefore the benefits of having an event driven security system are evident as it has carried out its required job, based on the events that have