Friday, 21 November 2014

Event driven programming operating systems


Event driven programming can be seen in all operating systems, all the users interaction with the GUI will run an event driven line of code, below is an example of an event handler and where it is used in an operating system.

Pressing the start button in windows
Causes the start menu to open

This is done by the event handler being ran when the event “button press” occured.

The same can be seen on OSX the apple operating system, below is an example:


Right clicking causes the menu to appear and then pressing new folder creates as the name suggests a new folder. This is done by the program recognising the event and running the corresponding line of code.

No comments:

Post a Comment