> How does android process events in case of high CPU load?
Same way as in the low CPU load. Read data, calls your sensor
listener, waits a certain amount of time to provide events at a
desired rate.
Obviously the details depend on the sensors HAL implementation for a
given phone. I've seen a phone where this module did some heavy work
by itself and eats up to 45% of CPU.
Some phones allows request sensors updates with 0 delay which results
in continuous reading and 100% CPU load.
But most important: Android is not a real time platform dedicated to
the data processing.


On Feb 9, 8:06 am, Heiko <[email protected]> wrote:
> Hi,
>
> I'm currently testing the impact of heavy CPU workload on
> accelerometer sampling frequency. It appears, that when CPU workload
> is high, the samplerate oscillates between higher and lower than
> average values. I'm also storing the timestamp diff between two events
> and the test reveals, that there is also an oscillation here.
>
> You can see the time diff between sensor events 
> here):http://cl.ly/2S3o2T0w3A1W181i3g3F
>
> N is the phase with normal CPU load, Y the phase with high CPU load
> (around 95%+).
>
> The influence on the sample rate can be seen in this 
> chart):http://cl.ly/1T253P041O0R2m1U3Z1V
>
> How does android process events in case of high CPU load? Does it
> collect events and then sends many of them in a burst phase to the
> handler of an app?
>
> Best
> Heiko

-- 
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