如何查找调度策略和活动进程的优先级?

时间:2017-11-29 13:11:06

标签: linux unix awk ps

我想展示这样的东西:

pid 2089's current scheduling policy: SCHED_OTHER
pid 2089's current scheduling priority: 0
pid 2092's current scheduling policy: SCHED_OTHER
pid 2092's current scheduling priority: 0
pid 2093's current scheduling policy: SCHED_OTHER
pid 2093's current scheduling priority: 0

使用awk chrtps命令任何想法?

1 个答案:

答案 0 :(得分:0)

(cd /proc;echo [0-9]*)|xargs -n1 chrt -p