image/svg+xml
Initializeapplicationstate &objects
Sleep waitingfor new input,outputavailabilityor timeouts
Process events,state changes,timingcallbacks, I/O& changestate
Finalize statechanges &render updatedUI state
Shutdownapplicationstate &objects
REPEAT
MAINLOOP