Autodesk interview question

Explain how event loop works