If I have code like:
Runnable r = ...; Thread thread = new Thread(r); thread.setPriority((Thread.MAX_PRIORITY + Thread.NORM_PRIORITY) / 2);
or...
Runnable r = ... Thread thread = new Thread( new Runnable() { public void run() { android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_MORE_FAVORABLE); r.run(); } });
IS . Need / preferred android.os.Process method?
WHY is android.os.Process's preferred / mandatory way, if any?
This is not clearly documented as far as I can tell.
android
Greg Giacovelli Mar 04 2018-11-11T00: 00Z
source share