Question

In: Computer Science

It is a consensus in operating systems design to assign high priorities or allocate more CPU...

It is a consensus in operating systems design to assign high priorities or allocate more CPU time to interactive processes (which are I/O-bound). Explain how this is accomplished by multilevel queue scheduling and the Linux CFS (Completely Fair Scheduler).

Solutions

Expert Solution

actually, the macOS and Windows schedulers can be regarded as examples of multilevel feedback queue schedulers. The algorithm meets the following design requirements for multimode systems:

*Give more preference to short jobs.
*Give more preference to I/O bound processes.
*Separate process into categories based on their need for the processor.

The multilevel queue scheduling algorithm is permanently assigned to a queue, and multilevel feedback queue scheduling allows a process to move between queues. here, This movement is ease by the characteristic of the CPU burst of the process. If a procedure uses too much CPU time, it will be moved to a lower priority queue. and This leaves I/O-bound and interactive procedures in the higher priority queues. also, a procedure that waits too long in a lower-priority queue may be moved to a higher priority queue. This form of aging also helps to stop starvation of certain lower priority processes.

*Advantages is...
here, The procedures are permanently assigned to the queue, so it has the advantage of low scheduling overhead.

*Disadvantages is...
here, Some procedures may starve for CPU if some higher priority queues are never becoming empty.
and also It is inflexible in nature.

The Completely Fair Scheduler (CFS) is a process scheduler.CFS ensures that the CPU is allocated equitably.
here, If the CPU access time provided to many tasks isn’t balanced, CFS gives the shortchanged tasks the time they need to execute.CFS keeps track of the balance between tasks by maintaining CPU access times in the virtual runtime. The smaller a task’s virtual runtime, the greater its recognized CPU need.CFS uses sleeper fairness to make sure even tasks that aren’t currently running will still receive their fair share of CPU when needed.and CFS doesn’t directly use priorities.


Hope you got the correct answer...

please like...Thank you!


Related Solutions

Write Algoritm , code and output. In Operating Systems , 26. Implement a program to allocate...
Write Algoritm , code and output. In Operating Systems , 26. Implement a program to allocate memory by applying the following strategies.a .FIRST FIT b.BEST FIT c.WORST FIT
Compare the design goals and evolution of Android and Windows operating systems. [10 Marks]
Compare the design goals and evolution of Android and Windows operating systems. [10 Marks]
In regards to modern operating systems If you are asked to design a hotel check-in system...
In regards to modern operating systems If you are asked to design a hotel check-in system that has three steps, what would you like to propose? If you are asked to detail your previous design so that it has five steps, how would you update it and why? If you are asked to propose a hotel check-in system without any limitation in steps, what would it be and why?
​(Operating leverage​) The Quarles Distributing Company manufactures an assortment of cold air intake systems for​ high-performance...
​(Operating leverage​) The Quarles Distributing Company manufactures an assortment of cold air intake systems for​ high-performance engines. The average selling price for the various units is ​$500 . The associated variable cost is ​$400 per unit. Fixed costs for the firm average $ 200 comma 000 annually. a. What is the​ break-even point in units for the​ company? b. What is the dollar sales volume the firm must achieve to reach the​ break-even point? c. What is the degree of...
​(Operating leverage​) The Quarles Distributing Company manufactures an assortment of cold air intake systems for​ high-performance...
​(Operating leverage​) The Quarles Distributing Company manufactures an assortment of cold air intake systems for​ high-performance engines. The average selling price for the various units is ​$600 . The associated variable cost is ​$400 per unit. Fixed costs for the firm average $ 190 comma 000 annually. a. What is the​ break-even point in units for the​ company? b. What is the dollar sales volume the firm must achieve to reach the​ break-even point? c. What is the degree of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT