Question

In: Computer Science

With RR, interactive computing is possible. Why does RR enable interactive computing? The traditional UNIX scheduler...

  1. With RR, interactive computing is possible. Why does RR enable interactive computing?
  2. The traditional UNIX scheduler enforces an inverse relationship between priority numbers and priorities: The higher the number, the lower the priority. The scheduler recalculates process priorities once per second using the following function:

Priority = (recent CPU usage / 2 ) + base

where base = 60 and recent CPU usage refers to a value indicating how often a process has used the CPU since priorities were last recalculated.

Assume that recent CPU usage for process P1 is 40, process P2 is 18, and process P3 is 10.

  1. What will be the new priorities for these three processes when priorities are recalculated?
  2. Based on this information, does the traditional UNIX scheduler raise or lower the relative priority of a CPU-bound process?

Solutions

Expert Solution

Round Robin Scheduling (RR) per priority is suitable for interactive computing. It is made possible by multi-level feedback scheduling. It adjusts the priority dynamically and main aim is to place process automatically based on the recent CPU usage. Thus it avoids the problem of starvation to an extent. Eventhough if there are a number of interactive process will becomes ready for execution then it becomes difficult and it can be solved by aging process

In priority scheduling , the process with highest priority will be the first one to be executed. Priority is defined by an integer number , low value indicates higher priority. i.e. priority number 1 indicates higher priority. As the priority number increases priority decreases. Priority can be static or dynamic.

Static priority remains until end of the process execution.

Dynamic priority means the priority will change during the execution of processes. This is to increase the efficiency of scheduling algorithms.

If a high priority process is CPU bound (Uses more CPU time) then the lower priority process has to wait a lot leads to starvation. All these issues can be solved by recalculating process priority once per second by the scheduler.

In priority related scheduling, priority number is inversely proportional to the priority of a process. Priority is calculated using the formula

Priority = (recent CPU usage /2) + base

base = 60

CPU usage for P1 = 40

P2 = 18

P3 = 10

a) Recalculated Priority

Process P1 , Priority = (40/2) + 60

= 20 + 60

= 80

Process P2 , Priority = (18/2) + 60

= 9 + 60

= 69

Process P3 , Priority = (10/2) + 60

= 5 + 60

= 65

From this calculation, we can conclude that process with lower priority value is executed first. i.e. process P3 is executed initially, beacuse P3 is the process with lower priority value.

b) Based on the calculated priority we can analyse that,  Traditional UNIX scheduler lowers the relative priority of a CPU bound process. CPU bound process will move to lower priority level and interactive process remains in higher level with less CPU burst time.


Related Solutions

Why do firms outsource their IT functions? Explain the options of traditional IT outsourcing and cloud computing, and how they differ.
Why do firms outsource their IT functions? Explain the options of traditional IT outsourcing and cloud computing, and how they differ.  
What is cloud computing? Why is it important / what does it mean to the future...
What is cloud computing? Why is it important / what does it mean to the future of computing?
How does TCP handle interactive versus bulk data transfers? Why do you think this was done...
How does TCP handle interactive versus bulk data transfers? Why do you think this was done this way, rather than just a one-size fits all kind of mode? What would be a downside of either approach? Provide a detailed explanation/response.
Explain why traditional partnerships should be considered malpractice. Include possible alternatives and make sure to emphasis...
Explain why traditional partnerships should be considered malpractice. Include possible alternatives and make sure to emphasis on why these are currently dangerous.
250 words Why does traditional NPV analysis tend to underestimate the true value of a capital...
250 words Why does traditional NPV analysis tend to underestimate the true value of a capital budgeting project?
Describe Ford’s VMC in detail. What does a more traditional VMC look like and why did...
Describe Ford’s VMC in detail. What does a more traditional VMC look like and why did Ford have to make changes to the traditional VMC strategy for their campaign? Will this type of campaign work for Ford’s other consumer segments and other car models? Please be specific as to why this may or may not work and what Ford models might be attractive for this type of VMC campaign.
Why does society like stories of everyday citizens rather than political activists? If possible, include a...
Why does society like stories of everyday citizens rather than political activists? If possible, include a reference to back up your answer.
Why does just-in-time emphasize product-oriented layout, whereas traditional manufacturing disregards setup time as an improvement priority?
Why does just-in-time emphasize product-oriented layout, whereas traditional manufacturing disregards setup time as an improvement priority?
1.Why is the epigenome considered our second genome? 2.How does epigenetics differ from traditional genetics? from...
1.Why is the epigenome considered our second genome? 2.How does epigenetics differ from traditional genetics? from epigenomics? 3.Explain how epigenetic events play a role in aging 4.Explain how epigenetic events control the formation of euchromatin and heterochromatin 5.Explain how epigenomics studies are conducted. Please answer all questions in detail. Thank you
Why does a large entropy increase in CO2 vs. organic matter make life possible? Having trouble...
Why does a large entropy increase in CO2 vs. organic matter make life possible? Having trouble conceptually understanding this... when does CO2 have a large entropy increase?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT