请输入您要查询的百科知识:

 

词条 Kernel preemption
释义

  1. See also

  2. References

Kernel preemption is a method used mainly in monolithic and hybrid kernels where all or most device drivers are run in kernel space, whereby the scheduler is permitted to forcibly perform a context switch (i.e. preemptively schedule; on behalf of a runnable and higher priority process) on a driver or other part of the kernel during its execution, rather than co-operatively waiting for the driver or kernel function (such as a system call) to complete its execution and return control of the processor to the scheduler.[1][2][3][4]

There are two main benefits to this method in monolithic and hybrid kernels, and answer one of the main criticisms of monolithic kernels from microkernel advocates, which is that:

  • A device driver can enter an infinite loop or other unrecoverable state, crashing the whole system.[1]
  • Some drivers and system calls on monolithic kernels are slow to execute, and cannot return control of the processor to the scheduler or other program until they complete execution.[2]

See also

{{Portal|Computing}}
  • Linux kernel preemption

References

1. ^{{cite web | url = http://kernelnewbies.org/FAQ/Preemption | title = Preemption under Linux | date = 2009-08-22 | accessdate = 2016-06-10 | website = kernelnewbies.org}}
2. ^{{cite web | url = https://lwn.net/Articles/22912/ | title = Driver porting: the preemptible kernel | date = 2003-02-24 | accessdate = 2016-06-10 | author = Jonathan Corbet | publisher = LWN.net}}
3. ^{{cite web | url = https://www.freebsd.org/doc/en/books/arch-handbook/smp-design.html | title = FreeBSD Architecture Handbook, Chapter 8. SMPng Design Document, Section 8.3. General Architecture and Design | accessdate = 2016-06-10 | website = freebsd.org}}
4. ^{{cite web | url = http://www.linuxjournal.com/article/5600 | title = Lowering Latency in Linux: Introducing a Preemptible Kernel | date = 2002-05-01 | accessdate = 2016-06-10 | author = Robert Love | publisher = Linux Journal}}

2 : Scheduling (computing)|Operating system kernels

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/16 11:04:31