Why do we need a swapper task in linux?

后端 未结 4 1503
失恋的感觉
失恋的感觉 2020-12-08 02:11

The idle task (a.k.a. swapper task) is chosen to run when no more runnable tasks in the run queue at the point of task scheduling. But what is the usage for this so special

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 02:53

    You can use ps -ef and it will list the no of process which are running. Then in the first link, it will list the first pid - 0 which is the swapper task.

提交回复
热议问题