Top "Thread-sleep" questions

The .net Thread.

Call Thread.Sleep from the Task

Is it correct to use Thread.Sleep() inside the task. Or is only a timer (Task.Delay() in .Net 4.5 and …

.net c#-4.0 task-parallel-library delay thread-sleep
Error 'this_thread': the symbol to the left of a '::' must be a type?

My headers: #include <chrono> #include <thread> #include <iostream> #include <string> #include <…

visual-studio-2012 c++11 namespaces thread-sleep
Access Thread from inside Runnable

How can I access Thread object that is executing given Runnable? What I'd like to do is to call sleep() …

java multithreading runnable thread-sleep
Stop code until a condition is met

How can you create a function or component etc that will stop all running code until a condition is met? …

java conditional-statements wait joptionpane thread-sleep
Put Android to sleep for testing

Hi i am creating an alarm app and currently have some issues dealing with the Wakelock(or perhaps it's something …

android sleep thread-sleep wakelock
sleep-until in c#

I want to run a function periodically every 1 second, so after 10 seconds it is executed 10 times. The simplest approach is …

c# thread-sleep
Android Thread.sleep() in AsyncTask freeze UI

i'm tried many suggestions but nothing works! When i call Thread.sleep() in background thread, main thread also freezes for …

java android multithreading freeze thread-sleep
JFrame getHeight() and getWidth() return 0

I'm making a simple pong game; and part of the collision mechanics require getting the width and height of the …

java swing jpanel paint thread-sleep
Create thread within DLL

I'm working on a .NET profiler which I'm writing in c++ (a dll that uses ATL). I want to create …

c++ dll thread-sleep
using sleep() for a single thread

I am fairly new to java, and am starting to get into using different threads in order to use wait() …

java multithreading swing event-dispatch-thread thread-sleep