Questions tagged [wait]

In programming, 'wait' refers to the act of pausing the execution of a program until a specific condition is met or a given amount of time has passed.

In programming, 'wait' refers to the act of pausing the execution of a programm until a specific condition is met or a given amount of time has passed.

3454 questions
1
vote
1 answer

Out of memory exception while playing with Monitor.Wait and Monitor.Pulse

I was playing with the Monitor class in .NET so I arrived at a piece of code that seem to be working but when I loop it for a while it throws an OutOfMemoryException. I am running this on a 64 bit windows 8 developer machine with 8 GB of RAM and I…
Angel Venchev
  • 697
  • 1
  • 7
  • 18
1
vote
3 answers

Splash Screen wait few seconds

I am trying to make a splash screen wait for 10 seconds. I tried searching everywhere and tried a few methods, but nothing seems to work. Anyone to lead me to the right direction? Here is my code: public class SplashLoadingScreen extends Screen…
Simon Sari
  • 21
  • 6
1
vote
1 answer

What is alternative of "QDDisplayWaitCursor"?

I am trying to display wait cursor (spinning rainbow wheel) by using "QDDisplayWaitCursor" function, but I get a warning that "QDDisplayWaitCursor" is deprecated, however everything runs fine but I would like to replace it with proper alternative of…
Akash Kava
  • 39,066
  • 20
  • 121
  • 167
1
vote
2 answers

Waiting for child processes when using select() for multiplexing

I am facing some trouble dealing with zombie processes. I wrote a simple server which creates tic tac toe matches between players. I am using select() to multiplex between multiple connected clients. Whenever there are two clients, the server will…
mrQWERTY
  • 4,039
  • 13
  • 43
  • 91
1
vote
0 answers

Python Selenium not implicitly nor explicitly waiting while using threading

I'm working on a gui that takes in values and runs a Selenium test based on those values. I decided to run the selenium stuff as a thread because it would make the gui unresponsive. The only problem is no waiting is happening. It's as if the wait…
James Robert Albert
  • 404
  • 1
  • 5
  • 13
1
vote
0 answers

Java: is wait(timeout) at least as precise as sleep(timeout) in suspending for timeout millisecs?

(Duplication: there are a lot of questions about wait() vs sleep(), but I need this specific detail, which I haven't found addressed in any on the answers.) Context: I have a scheduler implemented with sleep(), but I want to change its…
GozzoMan
  • 782
  • 9
  • 23
1
vote
1 answer

Checking if a process has terminated in C

I got stuck trying to come up with a function in C. Basically what it's supposed to do is: it first checks if a specific process has terminated. If it has, it increments the returned value of the terminated process into a list. If it hasn't…
laker001
  • 417
  • 7
  • 20
1
vote
1 answer

Load html with WebBrowser Control while Blocking UI Thread

I have a .Net 4.5 WinForms application that contains html stored in a database. The user is presented with the list of pages. As they click on a row the page is loaded into the WebBrowser. I want the process of loading the page to be synchronous…
MBeckius
  • 1,447
  • 2
  • 12
  • 14
1
vote
1 answer

How to wait for a click on canvas

I would like to put a "pause" in my program. Basically, every time I call my wait() function, nothing should happen until I click the canvas. Drawrectangle(a,b,c,d) waitforclick() drawrectangle(e,f,g,h) The first rectangle will be drawn, and…
user2587878
  • 121
  • 3
  • 15
1
vote
3 answers

Wait for process to end and continue code in CMD/BATCH

I am trying to wait for the process to end, Can't use the "Start /W" because the process opens from another program. So all in all, I need some kind of scanner to look for if the process in the WaitSession and then continue the code to the…
crysal
  • 97
  • 8
1
vote
2 answers

Get constant output during clock cycles

I want to change my out put when my input is changed but after this changes, my output will be constant during 4 clock cycles. After 4 clock cycles, if input is changed, out put will been changed with input. In conclusion, I want to wait during 4…
ffttyy
  • 853
  • 2
  • 19
  • 49
1
vote
1 answer

Wait for a flag

I have to test that a Flash Player is correctly sending requests over the network. For that, I use BrowserMob Proxy to capture traffic. My issue is I have to wait the end of the video played to test the final request. So as temp solution, in my…
tetienne
  • 369
  • 3
  • 13
1
vote
2 answers

Pinging 192.0.2.2 Receives a Response...but shouldn't

I'm using the windows batch script function ping 192.0.2.2 -n 1 -w 10000 > nul on my local machine (Windows 7) in a command prompt to test its functionality. The explanation of the function is here: "How to wait in a batch script?". I've used…
Vincent Vance
  • 117
  • 1
  • 4
  • 13
1
vote
1 answer

Java Thread never receiving notify

I've been trying to make a simple Java thread application, where one thread waits, and another wakes it up after 3 seconds. However, I can't seem to make it work and I just can't figure out why. public class Deadlock extends Thread { Object lock =…
plafer
  • 185
  • 12
1
vote
0 answers

Cpp socket program waits indefinitely on send() and recv() function

I was implementing a cpp socket file transfer program.The server will send the list of files available and the client will reply with the name of file.Sending of the list is successful but while receving the program waits indefinitely.Please help…