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

Re: process wakeups



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew Garrett wrote:
> There are certain situations where polling is inevitable (such as 
> querying hardware for battery status or signal strength, pulling mail, 
> that kind of thing).

For querying hardware there should be better ways.  Have a centralized
place where the information is poll and the broadcast changes.  I though
hal etc is supposed to do this.

As for mail pulling: sure.  But the frequency should be measured in
minutes and not in micro-seconds.


> Applications that do this should do it at 
> relatively low frequency, and where possible (ie, almost always) use 
> g_timeout_add_seconds or equivalent functionality.

I assume this refers to the same thing Arjan tried to do: group wakeups
of multiple waiters together.  He can probably recall the details more
easily than I can.

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh8tq0ACgkQ2ijCOnn/RHRF/QCfeGAbjuejLQl5MDhNQafy7edA
coYAn0a3cULC+vdaYVRAZOEHMA2rnQ/d
=rW6D
-----END PGP SIGNATURE-----


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