且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android / Java的执行Linux命令低优先级?

更新时间:2023-12-03 23:40:46

您可以在已解锁装置与 renice只能改变进程的优先级,如果你知道在Busybox的提供二进制该进程的PID要给予优先考虑较少。

You can change the process priority on rooted devices with renice provided by the Busybox binary if you know the PID of the process you want to give less priority to.

只需使用运行时的执行函数,就像你在运行的命令。

Just run the command using the exec function of Runtime just like you are.