Java idle processing

H

HappyHippy

Hi,

My question is: is there any way to implement "OnIdle" processing in
Java? All I want is to have a function called whenever the process is in
idle state.
It is commonly used in various C/C++ toolkits, but I couldn't find any
way to implement it in Java.

Thank you!
 
E

Eric Sosman

HappyHippy wrote On 09/04/06 23:14,:
Hi,

My question is: is there any way to implement "OnIdle" processing in
Java? All I want is to have a function called whenever the process is in
idle state.
It is commonly used in various C/C++ toolkits, but I couldn't find any
way to implement it in Java.

If such a thing exists, I haven't heard of it. One issue
would be to define precisely what you mean by "in idle state."

What task do you want this function to carry out? Perhaps
you could just run it in a Thread at MIN_PRIORITY.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top