process wakeups
David Woodhouse
dwmw2 at infradead.org
Tue Jul 15 15:33:47 UTC 2008
On Tue, 2008-07-15 at 15:28 +0100, Matthew Garrett wrote:
> On Tue, Jul 15, 2008 at 01:30:50PM +0200, Harald Hoyer wrote:
>
> > g_timeout_add_seconds does not "really" sync globally.
>
> Yeah, it's non-ideal. Anything better is going to need at least glibc
> (and ideally kernel) support.
If it needs to be done per sleep event. On the other hand, if you can
set a per-thread flag or tunable which says 'you can always delay my
wake by up to N milliseconds', then you don't need special magic in
poll/select/nanosleep/etc for that. And it would make it easier to
modify userspace to use it too. In fact, you could even use it with
binary-only unmodified userspace, by executing a program with the flag
already set.
--
dwmw2
More information about the fedora-devel-list
mailing list