Re: Activating a daemon during idle time

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

 



On Mon, Jan 21, 2002 at 07:37:20AM -0800, Swapnil Nagle wrote:
> 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. 

One possibility for this is making a task queue and running the task
queue during cpu_idle().


Cheers,
Bill
--
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