如果我有这样的代码:
Runnable r = ...;
Thread thread = new Thread(r);
thread.setPriority((Thread.MAX_PRIORITY + Thread.NORM_PRIORITY) / 2);
或者..。
Runnable r = ...
Thread thread = new Thread( new Runnable() {
public void run() {
android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE);
r.run();
}
});
是否 android.os。需要/首选的处理方式?
为什么 是 android. os。过程方式的首选/需要,如果它是?
据我所知,这并没有明确的记录。