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.