Preemptive kernel and non-preemptive kernel

Source: Internet
Author: User
2013-02-06 10:43 3269 People read Comments (3) favorite report Category: "OS" (4)

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Directory (?) [+]

UNIX uses a preemptive kernel, Linux uses a non-preemptive kernel kernel preemption (preemptive kernel): When a process is in kernel space, when a higher priority task appears, if the current kernel allows preemption, you can suspend the current task and execute a higher-priority process. Non-preemptive kernel: high-priority processes cannot preempt CPU runs by aborting low-priority processes running in the kernel. Once a process is in a nuclear mindset (for example, a user process executing a system call), the process will run until it is done or exited by the kernel preemption kernel, unless the process voluntarily abandons the CPU: first, this is necessary to apply Linux to a real-time system. The real-time system has strict response time limits, and when a real-time process is awakened by the hardware interrupt of the real-time device, it should be scheduled to execute within a limited time. Linux does not meet this requirement because the kernel of Linux is not preempted and cannot determine the dwell time of the system in the kernel. In fact, when the kernel executes a long system call, the real-time process waits until the kernel is running to exit the kernel before it can be dispatched, resulting in a delay in the response, which, under today's hardware conditions, will grow to 100ms. This is unacceptable for systems that require a high real-time response. The preemptive kernel is not only critical to the real-time application of Linux, but also solves the shortcomings of Linux for low latency applications such as multimedia (video, audio).

Preemptive kernel and non-preemptive kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.