The computer world is an extension of the real world.

Source: Internet
Author: User

Operating System SchedulingAlgorithmIt can be divided into the following types: 1 first service, 2 priority scheduling, 3 Priority Scheduling for short jobs, 4 rotation scheduling, and 5 Priority Scheduling for high response ratio. These five algorithms are actually living management methods in real life.

If you have a resource public toilet (CPU), now many people use it (job ). There will be many situations:

1. If everyone is a civilian, the first person will use the public toilet first.

2. If one of the people is the mayor, let the mayor first. This is --- priority scheduling.

3. Many people later call it "I can't help it. I just need to urinate and let me do it first" --- Priority Scheduling for short jobs.

4. Everyone is a civilian, but one person cannot pull out and remains in the position. Then you can ask him to come out for preparation and let the people behind him go to the rotation scheduling method first.

5. After waiting for a long time, the mayor is not in front of the queue, but the person pulling urine is the first. At this moment, he will not be able to get it first. --- High response ratio priority scheduling.

I believe that computer scientists have also found a solution in their lives. If we are studying, we believe that the theory and practice will be very rewarding and better remembered.

 

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.