change process priority in android

前端 未结 3 515
情歌与酒
情歌与酒 2020-12-31 12:47

How to change process priority in Android? I have found process description and description of it\'s priorities in android docs

process and thread description

<
3条回答
  •  执笔经年
    2020-12-31 13:21

    This only works with a rooted device:

    Use a terminal, become root by inputting

        su
    

    then select the process-id from the output of top

        top -n 1 -m 10
    

    look in the column PID and renice the process (in this example PID 1825 to priority 0) you want to by

        renice 0 1825
    

    That's all. Keep in mind, that this change will be overwritten by the OperatingSystem, after some time, when OS thinks it was necessary to give the process more priority.

提交回复
热议问题