如果CPU正在运行100%的使用率,其他进程应该放在运行队列中。我可以使用哪个命令来获取运行队列的大小?vmstat似乎返回了CPU的相关值,如下所示: r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 0 875128 576328 2147136 0 0 1 4 3
在Linux2.6.11.12中,在shedule()函数选择要运行的"next“任务之前,它将锁定运行队列在调用context_switch()执行上下文切换之前也有一些依赖于拱的实现,例如: * On IA-64, we don't want to hold the runqueue's lock during the low-level context-switch