Malwarebytes Interview Question

Name some software patterns. How does event loop work?