Kouhei Sutou
3/15/2008 1:07:00 AM
Hi,
In <20080313132049.GA15954@titan.pccl.info>
"Threads, do_nanosleep and battery life" on Thu, 13 Mar 2008 22:21:58 +0900,
Mark Somerville <ms@pccl.info> wrote:
> I'm writing a Ruby GTK application that runs on a mobile device (Nokia N800).
> It's starting to take shape now, but I have noticed that leaving it running for
> long periods of time is particularly bad for my battery life.
>
> I don't really understand Ruby threads under the hood or what alterations to
> them ruby-gtk2 makes (but am keen to learn!). Powertop suggests that Ruby is
> waking up around 100 times a second when there is an active thread, even
> during a sleep state. Presumably this is to check for thread activity.
This should be fixed in Ruby-GNOME2 trunk.
Thanks,
--
kou