Top "Sleep" questions

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

How to create a delay in Swing

I made a blackjack game, and I want the AI player to pause between taking cards. I tried simply using …

java swing sleep delay thread-sleep
Is there a way to keep Airplay running if the device auto-sleeps/auto-locks?

When streaming a video from an iPhone (or any iOS device) to a TV via Airplay, the stream stops as …

ios locking sleep airplay
When exactly is onUserInteraction() called?

in my app I got a thrad that checks every 60s data from a webservice (defined in onCreate()): new Thread(…

android multithreading sleep user-interaction postdelayed
How is sleep implemented at the OS level?

I am just interested how sleep(time in ms) is implemented in a C library or basically at the OS …

c operating-system sleep
Bash date/time arithmetic

I have a little Bash script which suspends the computer after a given number of minutes. However, I'd like to …

bash date time sleep suspend
How do you keep the console from closing after the program is done?

How do you keep the console from closing after the program is done in Java?

java jar console sleep pause
Thread.sleep() is hung?

Here's my simple code to loop every second (doesn't need to be exact) and kick off a job if necessary: …

java sleep
how to wakeup android phone from sleep?

How to wakeup android phone from sleep (suspend to mem) programmably? I don't want to acquire any wakelock, which means …

android sleep wakeup real-time-clock
Sleep routine for HTA scripts

In several of my .HTA scripts that I created, I had the need for the VBScript WScript.Sleep command which …

delay sleep wait hta
How can I put the current thread to sleep?

There is so much outdated information, it is really hard to find out how to sleep. I'd like something similar …

rust sleep