实时进程的优先级 > 普通进程的优先级
1. nice优先级: 普通进程拥有nice优先级, 查看命令NI列:
ps -el | more
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 0 78 0 - 518 stext ? 00:00:00 init
1 S 0 2 1 0 -40 - - 0 migrat ? 00:00:00 migration/0
1 S 0 3 1 0 94 19 - 0 ksofti ? 00:00:00 ksoftirqd/0
5 S 0 4 1 0 -40 - - 0 watchd ? 00:00:00 watchdog/0
1 S 0 5 1 0 70 -5 - 0 worker ? 00:00:00 events/0
1 S 0 6 1 0 70 -5 - 0 worker ? 00:00:00 khelper
5 S 0 7 1 0 70 -5 - 0 worker ? 00:00:00 kthread
1 S 0 10 7 0 70 -5 - 0 worker ? 00:00:00 kblockd/0
1 S 0 11 7 0 80 -5 - 0 worker ? 00:00:00 kacpid
1 S 0 176 7 0 76 -5 - 0 worker ? 00:00:00 cqueue/0
1 S 0 179 7 0 70 -5 - 0 hub_th ? 00:00:00 khubd
1 S 0 181 7 0 70 -5 - 0 serio_ ? 00:00:00 kseriod
2. 实时优先级: 实时进程具有实时优先级, 查看命令RTPRIO列:
[fpf@localhost ~]$ ps -eo state,uid,pid,ppid,rtprio,time,comm | more
S UID PID PPID RTPRIO TIME COMMAND
S 0 1 0 - 00:00:00 init
S 0 2 1 99 00:00:00 migration/0
S 0 3 1 - 00:00:00 ksoftirqd/0
S 0 4 1 99 00:00:00 watchdog/0
S 0 5 1 - 00:00:00 events/0
S 0 6 1 - 00:00:00 khelper
S 0 7 1 - 00:00:00 kthread
S 0 10 7 - 00:00:00 kblockd/0
S 0 11 7 - 00:00:00 kacpid
S 0 176 7 - 00:00:00 cqueue/0
S 0 179 7 - 00:00:00 khubd
S 0 181 7 - 00:00:00 kseriod
阅读(915) | 评论(0) | 转发(0) |