python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Is SetThreadExecutionState portable?
The target framework of my application is .NET 6.0, and it will run on Windows, macOS, and Linux. I would like my application to prevent its host from entering sleep/idle mode while the application is...

Dr. Strangelove
Votes: 0
Answers: 0
Get windows preventing sleep in swift macOS
I'm developing a Swift application for macOS and I would like to retrieve the list of windows that are preventing Sleep. Like the column in Activity Monitor->Energy.
Is there a way to retrieve this...
ghiro87
Votes: 0
Answers: 1
sleep_for in std::thread causes CPU spin
I'm writing an OpenGL application. At the beginning it has very large CPU consumption in SwapBuffer (profiled in Intel VTune Profiler) that made my user unhappy. I made some search and somebody says y...
jiandingzhe
Votes: 0
Answers: 0
How to use Thread.sleep() in Kotlin
This comes from near the end of the codelab found here:
Intro to debugging - Debugging example: accessing a value that doesn't exist
This is all inside the MainActivity.kt file
Here's my onCreate
clas...

TecBrat
Votes: 0
Answers: 3