"Todo" Linux process scheduling algorithm learning

Source: Internet
Author: User

Refer to this article http://blog.chinaunix.net/uid-27052262-id-3239260.html

Linux supports three process scheduling strategies, namely Sched_fifo , sched_rr , and sched_normal. Linux supports two types of processes, real-time processes and normal processes. Real-time processes can adopt Sched_fifo and sched_rr scheduling strategies, and common processes adopt Sched_normal scheduling strategies.

This paper mainly discusses the general process scheduling algorithm, in order to describe the convenience, the "process" in the later chapters refers to "ordinary process".

from the Linux2.6.23 kernel to the current Linux3.3.5 kernel's normal process (using the scheduling strategy Sched_normal), the absolute Fair scheduling algorithm is adopted, CFS (completely fair schedule). CFS has absorbed the idea of total fairness from the rsdl/sd , no longer tracks the sleep time of the process, and no longer distinguishes between interactive processes. It treats all processes uniformly, and that is the meaning of fairness. In CFS scheduling, the dynamic priority member Prio in the process data structure also continues to work, except that the kernel no longer dynamically adjusts the dynamic priority of the process.

"Todo" Linux process scheduling algorithm learning

Related Article

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.