被阻止的进程

问题描述 投票:0回答:1

据我所知,必须验证某些条件,以便进程继续运行。如果未确认,则处理器阻止该过程不浪费时间。在验证这些条件后,该过程进入ready state

但是,我在“现代操作系统安德鲁Tanenbaum”一书中遇到了这样的句子:There are two types of processes which are system processes and user processes. If processor takes a disk interrupt when it executes a user application, the system makes a decision to stop running the current process, and starts to run disk process. In this case, application process is kept in blocked state. After the disk is read or anything is written on the disk, the process waiting for it is unblocked.

我知道只有在未验证需求或条件的情况下才会阻止进程。但是,我想这句话试图说磁盘进程具有更高的优先级,这就是为什么应用程序进程被阻止的原因。优先级是阻止任何进程的因素吗?

process operating-system
1个回答
0
投票

你所描述的内容毫无意义。我不得不怀疑这是否是你引用的结果。

首先,处理器不会阻止进程;操作系统。

其次,我没有使用过像你在这里描述的那样工作的操作系统。

通常,如果磁盘驱动器触发中断,则当前进程处理该中断。在内核模式下,操作系统会执行磁盘操作所需的任何排队。如果进程的时间片已启动,则该进程才会更改。如果没有,在中断处理之后,进程会在中断之前从中断处继续。

我无法想象一个“现代”操作系统调用磁盘进程来处理磁盘中断。

© www.soinside.com 2019 - 2024. All rights reserved.