Saturday, 19 February 2022

android - what is message queue native poll once in android?

I know that threads have a message queue and handlers are able to push runnables or messages to them, but when I profile my android application using Android Studio tools, there is a strange process:

android.os.MessageQueue.nativePollOnce

It uses the CPU more than all the other processes. What is it and how can I reduce the time that the CPU spends on it? You can find the profiler result below.

enter image description here



from android - what is message queue native poll once in android?

No comments:

Post a Comment