Top "Sleep" questions

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

Thread.Sleep or Thread.Yield

I have a method that uses a background worker to poll a DLL for a status looking something like this: …

c# multithreading sleep yield
Is there a way to check if the iOS device is locked/unlocked?

I have used GPS location updates in my application. I want to detect if the iOS device is in sleep …

ios gps sleep core-location
What is the easiest way to "detach/daemonize" a Bash script?

What I am trying to do is write a Bash script that sleeps for a set amount of time before …

bash process daemon sleep detach
Python3 sleep() problem

I was writing a simple program on Python 3.1 and I stumbled upon this: If I run this on the IDLE …

python python-3.x sleep flush
To make a choice between ManualResetEvent or Thread.Sleep()

I am not sure which strategy to adopt...I am focusing on my operation getting completed, but I'd also like …

c# multithreading sleep manualresetevent
Disable sleep on certain activity

Is there any way to disable sleep of android mobile phone when user is in certain activity. I want to …

android sleep
Can any desktop browsers detect when the computer resumes from sleep?

It would be nice if the computer's 'wake up' event was propagated to the browser and available in the JavaScript …

javascript sleep
SystemClock.sleep() vs. Thread.sleep() while waiting for a semaphore loop

In order to synchronize/queue access to a shared resource, I am about to use a Semaphore, aided by a …

android multithreading sleep thread-sleep
Accurate Sleep for Java on Windows

Does anyone know a Library which provides a Thread.sleep() for Java which has an error not higher than 1-2 …

java windows sleep
CPU Utilization high for sleeping processes

I have a process that appears to be deadlocked: # strace -p 5075 Process 5075 attached - interrupt to quit futex(0x419cf9…

linux process cpu deadlock sleep