android开发过程中,线程优先级存在两种设置方法,一是Java的设置方法,二是android提供的设置方法。
一、Java线程优先级设置方法
Thread thread1 = new Thread();
thread1.setPriority(10);
内部调用的也是底层的方法
public final void setPriority(int newPriority) {
ThreadGroup g;
checkAccess();
if (newPriority > MAX_PRIORITY || newPriority < MIN_PRIORITY) {
// Android-changed: Improve exception message when the new priority is out of bounds.
throw