Malwarebytes interview question

Name some software patterns. How does event loop work?