I often use this code in winforms applications to wait for events, without using threads.
while(checkSomething()){
Application.DoEvents();
}
The program and pc is still responsive while the loop run, however if I look cpu usage in task managart, it usage is reported as 100% . Do you know why this happens?