当前位置:在线查询网 > 在线百科全书查询 > 非抢占式

非抢占式_在线百科全书查询


请输入要查询的词条内容:

非抢占式


非抢占式。这种方式是让原来正在运行的进程继续运行,直至该进程完成或发生某种事件(如I/O请求),才主动放弃处理机。还有一种叫抢占式。同属进程调度方式。

抢占式与非抢占式的对比:

非抢占式(Nonpreemptive)

让进程运行直到结束或阻塞的调度方式

容易实现

适合专用系统,不适合通用系统

抢占式(Preemptive)

允许将逻辑上可继续运行的在运行过程暂停的调度方式

可防止单一进程长时间独占CPU

系统开销大(降低途径:硬件实现进程切换,或扩充主存以贮存大部分程序)

非抢占No preemption. No resource can be forcibly removed (强行抢占) from a process holding it.

循环

抢占与非抢占调度的相同点、不同点:(决策模式)

Nonpreemptive(非抢占)

–Once a process is in the running state, it will continue until it terminates(结束) or blocks itself for I/O(阻塞)

Preemptive (抢占)

–Currently running process may be interrupted and moved to the Ready state by the operating system(运行时可中断)

–Allows for better service since any one process cannot monopolize the processor for very long(较好服务,避免进程独占处理机太长时间)

相关分词: 抢占