Top "Sleep" questions

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

Sleep in loop when application is running, but sleeps too few

private static void Main(string[] args) { for (;;) { TemporaryCityTool.TemporaryCityTool.AddCity(); Console.WriteLine("waiting..."); Thread.Sleep(3600); } } why Thread.sleep not working. …

c# sleep thread-sleep
Delay or Wait-For Statement

I have a 500,000 line SQL script: update users set region_id = 9814746 where id = 101 and region_id is null; update users …

postgresql wait sleep
Sleep and check until condition is true

Is there a library in Java that does the following? A thread should repeatedly sleep for x milliseconds until a …

java multithreading sleep
Difference among sleep() and usleep() in PHP

Can any body explain me what is the difference among sleep() and usleep() in PHP. I have directed to use …

php sleep usleep
How to wait until File.Exists?

I have an app, listening for the *.log file in a chosen folder. I used FileSystemWatcher. But there is a …

c# multithreading file sleep exists
Can the execution of statements in Python be delayed?

I want it to run the first line print 1 then wait 1 second to run the second command print 2, etc. Pseudo-code: …

python sleep delay timing
C# put pc to sleep or hibernate

I want to put my system to either sleep or hibernate, two different options. How would I do this with …

c# hibernate sleep
Sleeping in a Thread (C / POSIX Threads)

I am developing a multithreaded application that makes use of POSIX Threads. I am using threads for doing a periodical …

c multithreading pthreads sleep usleep
What is a practical use for PHP's sleep()?

I just had a look at the docs on sleep(). Where would you use this function? Is it there to …

php function sleep usleep
How to "sleep" until timeout or cancellation is requested in .NET 4.0

What's the best way to sleep a certain amount of time, but be able to be interrupted by a IsCancellationRequested …

c# .net-4.0 sleep cancellation cancellationtokensource