Linux kernel: What process does schedule() run in?

后端 未结 4 625
没有蜡笔的小新
没有蜡笔的小新 2021-02-04 22:24

When you call a system call such as fork in process X, the kernel is said to be executing in process context. So, fork can be said to be running in pro

4条回答
  •  我寻月下人不归
    2021-02-04 22:49

    The scheduler take care of all processes, so does not run inside one process.

    Of course, when e.g. a process is scheduled out because of a clock interrupt, some process was running (and later, another one is scheduled).

    You cannot view all the kernel as running for processes (only system calls are).

提交回复
热议问题