Hi all, I am coding a daemon which i want to activate when the system is idle. I can think of the following approaches : * Interrupt the daemon periodically and read /proc/loadavg( or read the value from where /proc/loadavg reads it) . OR * wait on some event that will notify the daemon ? OR * make the daemon a low priority or background process so that it will effectively run during idle time. Please suggest any ideas/suggestions/improvements to above approaches. Thanks in advance. Swapnil. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/