Questions tagged [sleep]
sleep is a system call that suspends a process or thread for a specified amount of time
sleep
3,213
questions
0
votes
0
answers
14
views
ruby program not returning from sleep -- sometimes
tools@secmgrprd04:~/ $ ruby -v
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]
running on Unbuntu 20.04.
I have a ruby program that extracts logs from Palo Alto's panorama. It sits ...
-3
votes
1
answer
51
views
GO Call a function which return a interger kubernetes [closed]
I have a pod.yaml, I want to retrieve a new annotation integer value, to make a sleep. So I used Go to fetch the integer after the name : new-anno. With this value, I want to return a function to make ...
0
votes
1
answer
33
views
JavaScript. Selenium. Implicit wait and driver.sleep won't work together
I have suck script for Twitter login automation. I've set waits on 21 line and I script to wait on 34 line. But driver.sleep on line 34 doesn't work
'use strict';
const {Browser,Builder, By, Key} = ...
0
votes
2
answers
64
views
Bash child scripts - Timer interuptable by signals - read, timeout and sleep doesn't work
So, I'm on Arch Linux, running i3
I have a slideshow script that changes the background every 5 seconds. And I have a bunch of signals, such as toggle, next, previous, faster, slower. I have all of ...
0
votes
0
answers
15
views
boost::this_thread::sleep_for() cause BOOST_VERIFY fails with boost 1.83
I have this piece of code than worked fine with boost 1.70, but make assert (BOOST_VERIFY fails) upgrading to boost 1.83 version.
At startup, I initialize a new thread with:
void MsgController::Start(...
1
vote
0
answers
45
views
Sleep in Java behaving weirdly, with GUI, not running GUI commands till end
This is my first time working with threads so I apologize if the answer to this is simple. I have a GUI and when the user clicks a button, I want it to update the text to display the fact that a task ...
-1
votes
1
answer
54
views
Windows cmd timeout command not continue
I'm trying to run multiple commands in Windows cmd. And need to sleep for ~4 seconds between the commands.
I copy my commands block to the cmd and then want them to run one after the other with breaks ...
0
votes
0
answers
50
views
NRF52832 encounters low power consumption and sleep problems after turning on HFXO
When verifying the low power consumption of NRF52832, softdevice is not used, high-speed and low-speed crystal oscillators are connected externally, and the external crystal oscillator is used as the ...
0
votes
1
answer
98
views
How do I use the `Sleep()` procedure in TMS WEB Core?
Normally in VCL and FMX, you can use Sleep() to pause execution of code. So something like this as an example:
while true do
begin
// Do some code
Sleep(50);
end;
So after every iteration, it ...
0
votes
1
answer
81
views
How to sleep in Gleam?
I need to suspend a thread (or process) for a specific duration. In other languages like Python or JavaScript, this can be achieved using time.sleep() or setTimeout(), respectively.
What is the ...
1
vote
1
answer
60
views
Wait for n amount of milliseconds to continue executing the code in V
I am building a web crawler in V to index some URLs. The problem:
I need to limit the amount of requests I send every second, and let’s say I want to send a request every two seconds.
I've used many ...
1
vote
0
answers
54
views
Sleep() function. seems to interfere with \b and \r command
C++ beginner here, so please excuse me if this is caused by something simple I'm overlooking.
I was learning how to use the \b and \r commands. In my test program, they seem to run just fine, but when ...
0
votes
0
answers
47
views
line of program before sleep not run [duplicate]
from PyQt5.QtWidgets import *
from PyQt5 import QtCore
from PyQt5 import QtGui
import sys
import time
class Window(QMainWindow):
def __init__(self):
super(Window, self).__init__()
...
0
votes
0
answers
242
views
oidc-client-ts stops calling automatic silent renewal of a token when the computer goes into sleep mode and the session idle time is out
I am using react-oidc-context with oidc-client-ts for keycloak authentication.
Oidc-client-ts provides automaticSilentRenew setting, and it's working fine when the tab is inactive or active. I always ...
0
votes
0
answers
24
views
Waiting for several hours before resuming execution
I'm writing some code to control the altitude and azimuth of a solar panel, moving every hour between 6am and 6pm, then returning to the start position in the evening and resuming again 6am the ...