MIT JOS # Roundrobin scheduling#

Source: Internet
Author: User

MIT JOS # Round-robin scheduling#


The following is the implementation of the Round-robin scheduling strategy in the MIT Jos.

Inside the KERN/SCHED.C.


The following from <<modern Operating system>> (formerly moved Brick also has the advantage of WOW ~)



The combination of code can be a very image of understanding round-robin.

Every time we call Sched_yeild (), we're going to let the current process get out of the CPU.

So the idle = thiscpu->cpu_env;

Each time we give up the current process and then let the queue run from the "most recent" process of the current process, using the CPU

The so-called queue I mentioned here is not a priority queue, round robin takes all the processes into consideration as equally important, without the weight of the points.

Only all env structures are continuous structures. Able to find them using an index.


There are a variety of other scheduling strategies, you can go to see <<modern Operating system>>











MIT JOS # Roundrobin scheduling#

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.