I'm reading about virtual memory swapping and it says that pages of memory can be swapped when an application becomes idle. I've tried to google what that means but haven't found much elaborate information except for this stackoverflow answer:
Your WinForms app is driven by a message loop that pulls messages out of a queue. When that queue is emptied, the message loop enters a quiet state, sleeping efficiently until the next message appears in the message queue. This helps conserve CPU processing resources (cycles wasted spinning in a loop takes CPU time away from other processes running on the machine, so everything feels slower) and also helps reduce power consumption / extend laptop battery life.
So does the application become idle when there's no messages in the message queue?