我想展示这样的东西:
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
chrt
和ps
命令任何想法?
答案 0 :(得分:0)
(cd /proc;echo [0-9]*)|xargs -n1 chrt -p