[maemo-developers] [maemo-developers] Maemo Alarm/Notifier Interface

From: Gustavo Sverzut Barbieri barbieri at gmail.com
Date: Wed Jan 11 22:46:02 EET 2006
On 1/11/06, Andrew Flegg <andrew at bleb.org> wrote:
> On 11/01/06, Kimmo Hämäläinen <kimmo.hamalainen at nokia.com> wrote:
> >
> > I assume it will sleep most of the time and poll once in a minute
> > (according to man page).
>
> Polling once a minute is much too often, though! The daemon (even if
> it's crond) should get told, possibly over DBUS, when a scheduled
> event is added. It then recalculates its sleep time, and goes back to
> sleep until the next currently known event is due.
>
> Looking at the source to atd(8), this is what it seems to do.

Cron must do something like this, it's not dumb, it's a program really
mature and should have this.

My only concern is that this adds latency to the process (cron ->
shell ->program), but we need to gather use cases to see if it's
acceptable or not. My guess is that it's acceptable.

But as already told, we should have an easy-to-use API to avoid
writing to crontab directly.

--
Gustavo Sverzut Barbieri
--------------------------------------
Computer Engineer 2001 - UNICAMP
Mobile: +55 (19) 9165 8010
 Phone:  +1 (347) 624 6296; 08122692 at sip.stanaphone.com
Jabber: gsbarbieri at jabber.org
  ICQ#: 17249123
   MSN: barbieri at gmail.com
   GPG: 0xB640E1A2 @ wwwkeys.pgp.net

More information about the maemo-developers mailing list