Questions tagged [idle-processing]

49 questions
83
votes
3 answers

C# - Detect time of last user interaction with the OS

I'm writing a small tray application that needs to detect the last time a user interacted with their machine to determine if they're idle. Is there any way to retrieve the time a user last moved their mouse, hit a key or interacted in any way with…
djdd87
  • 67,346
  • 27
  • 156
  • 195
24
votes
2 answers

PG::TRDeadlockDetected: ERROR: deadlock detected

I am restarting 8 puma workers via bundle exec pumactl -F config/puma.rb phased-restart what works fine. Now I am getting more and more postgres errors: PG::TRDeadlockDetected: ERROR: deadlock detected I found a about 50 of idle postgres processes…
Railsana
  • 1,813
  • 2
  • 21
  • 30
20
votes
4 answers

How to use Espresso Idling Resource for network calls

Im trying to use Espresso to test my UI. When i login into my application, i do a call to Parse API (network call) to verify the username and password. If all is well the user gets directed to a new activity. I want to test this, but i cant seems to…
Dennis Anderson
  • 1,348
  • 2
  • 14
  • 33
17
votes
13 answers

Trying to connect internally to Oracle, getting an idle instance?

So I have an Oracle instance, and I know it's running on this system, I've su'd to the oracle user, and I'm trying to connect using "/ as sysdba". However, when I do connect, it says the instance is idle. I know the database is up and opened,…
seanbseanbseanbseanb
10
votes
1 answer

Application.Idle event significance

What I know about the Application.Idle event is that the application is finishing its processing and is about to enter the idle state. I read somewhere that If you have tasks that you must perform before the thread becomes idle, attach them to…
peter
  • 8,158
  • 21
  • 66
  • 119
9
votes
1 answer

Python inside GNU Screen eventually becomes idle if Screen is dettached

I have a python script which uses multiprocessing and subprocess to launch multiple external commands in parallel with different arguments. The code can be found here. For convenience I launch this script inside a GNU Screen session. The machine…
unode
  • 9,321
  • 4
  • 33
  • 44
9
votes
3 answers

Why peekmessage before getmessage?

Why the peekMessage statement is required before Getmessage() for creating message queue?
Josh
  • 93
  • 1
  • 3
8
votes
2 answers

Detect if user Idle on windows universal app

I'm developing a class library for windows 10 universal apps (mobile and desktop device families only). I need to invoke an event if the user has been idle(no touch, mouse move, key press etc) for x number of seconds. This method can be used to…
8
votes
1 answer

JavaFX 2 User Idle Detection

I'm trying to make a simple Java transaction app with JavaFX as UI. What I want to do now is to detect user idle state from my application which has 1 primary stage and many scenes. Example : if user idle for 3 minutes then go back to main menu. I…
ran88
  • 105
  • 2
  • 8
6
votes
5 answers

Java: Checking if PC is idle

This is a rather tricky question as I have found no information online. Basically, I wish to know how to check if a computer is idle in Java. I wish a program to only work if the computer is in active use but if it is idle then to not. The only way…
6
votes
3 answers

What should C program do in idle time when running on Linux?

I've written many C programs for microcontrollers but never one that runs on an OS like linux. How does linux decide how much processing time to give my application? Is there something I need to do when I have idle time to tell the OS to go do…
PICyourBrain
  • 9,976
  • 26
  • 91
  • 136
5
votes
3 answers

Detect user idle (per application instance)

I need user idle detection in my application only (per "my application instance"). I can't use GetLastInputInfo because is session-specific user input: GetLastInputInfo does not provide system-wide user input information across all running…
halorty
  • 644
  • 1
  • 7
  • 11
4
votes
2 answers

Exception in the OnIdle event does not bubble up

On my main form, I subscribed to two events: Application.ThreadException and Application.Idle. In theory, any exception that is not caught should get bubbled up to the main form. However, this does not work if the exception happens in the OnIdle…
sthay
  • 495
  • 1
  • 7
  • 16
4
votes
7 answers

Safest way to idle delphi application to wait for timer?

I am doing a delphi application that will run on my pc 24/7 in the background and will check if it has to do some actions or not, wait 30 minutes and check again, and so on. How can I make sure the application will not overload cpu or memory because…
4
votes
4 answers

How to Prevent ProcessMessages in Delphi

The Application.ProcessMessages command is well known and I use it in long processes to ensure my program will not tie up the computer. But I have one fairly quick set of processing, where I am buffering a view into a file. During the buffering…
lkessler
  • 19,819
  • 36
  • 132
  • 203
1
2 3 4