Process. setthreadpriority (process. thread_priority_background); // set the thread priority to the background. In this way, when multiple threads are concurrent, the CPU time allocated by many irrelevant threads will be reduced, which is conducive to the processing of the main thread, there are the following types:
Int thread_priority_audio // priority of the thread used for playing standard music
Int thread_priority_background // standard backgroundProgram
Int thread_priority_default // Default Application priority
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 // lower than favorable
Int thread_priority_lowest // the lowest priority of valid threads
Int thread_priority_more_favorable // higher than favorable
Int thread_priority_urgent_audio // The standard audio playback priority.
Int thread_priority_urgent_display // The Standard Display priority, which is also applicable to input events.