I can not find answer from MSDN. My question is, when Console.ReadKey is called on a thread,
1. the thread will be still in running status (like we call Sleep), which will consume CPU time?
2. or the thread will be in wait status like we call WaitOne, and keyboard press will signal the event?
thanks in advance,
Calling Sleep on a thread will not consume CPU time. That's the whole point.
The thread will block. A blocked thread should not consume CPU. Test it.