how to know that the process is idle ?

N

Nishant

Hello All ,
I have a Perl/Tk application. If the process is idle for say 10
minutes (i.e, someone does not do anything to the application), the
application should perform some action.
Pls suggest how can this be done ?

Best Regards
Nishant Sharma
 
P

Peter Makholm

Nishant said:
I have a Perl/Tk application. If the process is idle for say 10
minutes (i.e, someone does not do anything to the application), the
application should perform some action.
Pls suggest how can this be done ?

By setting an alarm with the alarm function (perldoc -f
alarm). Remember to reset the alarm at the start of the event handler
for each event.

//Makholm
 
T

Tad J McClellan

[ the same question as posted elsewhere ]


Please do not multipost.

Crosspost instead.
 
J

Jürgen Exner

Nishant said:
I have a Perl/Tk application. If the process is idle for say 10
minutes (i.e, someone does not do anything to the application), the
application should perform some action.
Pls suggest how can this be done ?

perldoc -q timeout

The slow event in this case is the user input.

jue
 

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,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top