process-system call-interrupt

When an application program executes a system call that results in a context 

switch and enters the kernel, it is executing kernel code on behalf of a 

process. You will often hear this referred to as process context within the 

kernel. In contrast, the interrupt service routine (ISR) handling the IDE 

drive (or any other ISR, for that matter) is kernel code that is not executing on behalf of any particular process.

 

系统调用属于调用系统调用的进程。也就是该进程在调用系统调用的时候进入了系统的核心态运行。运行抢占还是以这个进程为单位进行的。如果是中断就不需要以这个进程为单位抢占cpu了。而是直接执行啊。

就是进程就是为了抢占cpu设计的

中断不需要抢占直接占有啊

所以根本不属于某个进程

中断处理程序在系统启动的时候就在内存里面了

所以不是进程啊

在操作系统启动以后init创建的才是进程啊

可以看看linux创建进程的方法

启动内核的代码里面有设置中断处理程序的代码,都是开机的时候就到内存里了。

你可能感兴趣的:(linux)