Activating a daemon during idle time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux