Re: Programatically knowing inactive system
Originally Posted by
nipunreddevil
What are the methods which can be employed to figure out when a system is inactive(idle) for some threshold time duration?How to know this via some script etc.
NB:Although i would like to work on Linux,but ideally would like to know some general features/algorithms which help detect the same for any computing environment.
hello
if you want to figure this out you need different interfaces in uninx/linux.
on uninx ( solaris ) you can use /dev/kmem on linux you can use /proc to retrive the data.
but i think your problem is how to design "idle" because the system is always a little busy ( sync, network ...)
and what time slice you want to declare ( is there a screensaver running ? - get the cpu usage from it )
hope it helps a little.
ciao
"What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht
Bookmarks