How can OS be viewed as an Event Driven Application?

**Think of APIs, Compilers or binaries and how they behave. **:cheegum: