Top "Sleep" questions

sleep is a system call that suspends a process or thread for a specified amount of time

Prevent windows from going into sleep when my program is running?

I have to stop windows from going into sleep when my program is running. And I don't only want to …

windows winapi sleep
NetBeans / Java / New hint: Thread.sleep called in loop

In NetBeans, there's a new hint that says: Thread.sleep called in loop. Question 1: How/when can it be a …

java multithreading netbeans sleep hint
Cross platform Sleep function for C++

Is it possible with macros make cross platform Sleep code? For example #ifdef LINUX #include <header_for_linux_sleep_…

c++ cross-platform sleep
Display a countdown for the python sleep function

I am using time.sleep(10) in my program. Can display the countdown in the shell when I run my program? &…

python time sleep stopwatch countdowntimer
Do sleep functions sleep all threads or just the one who call it?

I am programming with pthread on linux(Centos)? I wanna to threads sleep a short time to wait for something. …

c multithreading pthreads sleep thread-sleep
Simple, non-blocking way to sleep?

I googled for this and read some threads here, but I haven't found a simple way to have a VB.…

vb.net sleep nonblocking
Sleeping for milliseconds on Windows, Linux, Solaris, HP-UX, IBM AIX, Vxworks, Wind River Linux?

I have to write a C program which has to sleep for milliseconds, which has to run on various platforms …

c sleep system-calls milliseconds
tkinter and time.sleep

I am trying to delete text inside a text box after waiting 5 seconds, but instead the program wont run and …

python time tkinter sleep elapsedtime
How to suspend a java thread for a small period of time, like 100 nanoseconds?

I know Thread.sleep() can make a java thread suspend for a while, like certain milliseconds and certain nanoseconds. But …

java sleep thread-sleep method-invocation nanotime
What is the difference between Thread.Sleep(timeout) and ManualResetEvent.Wait(timeout)?

Both Thread.Sleep(timeout) and resetEvent.Wait(timeout) cause execution to pause for at least timeout milliseconds, so is there …

c# multithreading timeout sleep waithandle