A piece of code that attends a message queue, processing each message in turn.
Message pumps are a staple of GUI programming, since messages are used to receive input.
The program abandoned the message pump and Windows eventually marked the window as not responding.