Most applications run in a loop: They receive events (move movement, button presses, minimize, exit, etc), do something based on those events, and then listen for events again. When a program freezes it’s usually because the code in an event handler has stalled. The program is stuck, it cannot loop back and process more events and becomes unresponsive. It might be stuck in an infinite loop, or waiting for a resource like a file, or any number of things causing the program to wait.
Latest Answers