As long as your thread has something to do then it will do it, unless
some other thread has something to do.  The only way to save on
battery power is to have all the threads waiting for external events,
which is normally the case for user interface threads.  Even
background worker threads are normally waiting on something.  But if
you decide to "busy-wait" for things (looping and polling) then your
app will be burning battery power unnecessarily.  Take a close look at
what your thread actually does and look for instances of busy-
waiting.  Or, if your thread does not wait for anything external then
you might as well let it run full-speed.  It is going to take the same
amount of total cumulative battery power regardless, so you might as
well get it over with.  Setting thread priorities only affects the
relative access to the CPU compared to other threads - not some
absolute speed control.  If all the other threads in a system are
waiting for something then your thread will run full-time regardless
of its priority.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to