Top "Thread-sleep" questions

The .net Thread.

Python threading interrupt sleep

Is there a way in python to interrupt a thread when it's sleeping? (As we can do in java) I …

python multithreading thread-sleep
Alternatives to using Thread.Sleep for waiting

Firstly I am not asking the same question as C# - Alternative to Thread.Sleep?, or Alternative to Thread.Sleep …

c# multithreading wait thread-sleep
Stopping long-sleep threads

Let's suppose I have a thread which should perform some task periodically but this period is 6 times each hour 12 times …

c++ multithreading c++11 thread-sleep
while loop or Thread.sleep()?

I'm programming a game in Java and I limit the FPS to 60. I figured out 2 different ways to get the …

java game-engine timing frame-rate thread-sleep
Is it sane to use Thread.Sleep(int) in ASP.NET or should I use another method?

I want to introduce a slight wait during some testing functions, to simulate a server call. Is it sane to …

c# asp.net thread-sleep
Changing images in a Loop - Android

I'm wondering why still I couldn't to figure out a way to do this. Although it seems like very simple, …

java android for-loop thread-sleep
Sleep() vs sleep_for()

Can someone explain the difference in behavior between these two ways of stopping a thread and then continue it again?. …

c++ multithreading sleep thread-sleep
Swing - Thread.sleep() stop JTextField.setText() working

Possible Duplicate: using sleep() for a single thread I'm having issues with JTextField.setText() when using Thread.sleep(). This is …

java swing jtextfield thread-sleep
Is it okay to use Thread.sleep() in a loop in Java, to do something at regular intervals?

I have read some threads that said that calling Thread.sleep() in a loop is problematic and is a serious …

java multithreading loops intervals thread-sleep
Is it Really Busy Waiting If I Thread.Sleep()?

My question is a bit nit-picky on definitions: Can the code below be described as "busy waiting"? Despite the fact …

multithreading thread-sleep