Android Thread Priority

Source: Internet
Author: User
Time: December 28, 2015 16:41:31
Process.setthreadpriority (Process.thread_priority_background); Set the thread priority to the background, so that when multiple threads are concurrent, many insignificant threads will be allocated a less CPU time, which facilitates the processing of the main thread, in the following ways:
int Thread_priority_audio//thread priority used by standard music playback
int Thread_priority_background//Standard daemon
int Thread_priority_default//priority of default app
int Thread_priority_display//Standard display system priority, mainly to improve UI refresh
int Thread_priority_foreground//Standard foreground thread priority
int thread_priority_less_favorable//below favorable
int thread_priority_lowest//valid thread lowest priority
int thread_priority_more_favorable//above favorable
int Thread_priority_urgent_audio//Standard more important audio playback priority
The int thread_priority_urgent_display//standard is more important than the display priority and is also applicable for input events.

From for notes (Wiz)

Android Thread Priority

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.