Do my other threads still run while I call sleep in the main thread? and, when I call sleep does my app still continue to receive messages?
Printable View
Do my other threads still run while I call sleep in the main thread? and, when I call sleep does my app still continue to receive messages?
Hello,
If a thread is started before a call to sleep, performance of that thread will not be affected by Sleep command. But the thread calling the Sleep command will be stopped for the time mentioned. Messages will be pumped to the message queue but will be processed only after the application wakes up after Sleep command.
Regards.
Pravin.
14-07-2005.
Thanks.
Also have a look at Using Sleep()Quote:
Originally Posted by dave18285