Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
How the sleep functions work
Depends on the specific implementation.
On Windows, Sleep() stops the thread that called it for the desired number of thread scheduler cycles. And at this time, the processor simply executes other threads.
In DOS, Sleep() started a long loop, inside which the program did nothing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question