Question: Exercise # 1 [ 1 2 pts ] : Warm - up Consider a system that uses Round - Robin scheduling with a context -
Exercise # pts: Warmup
Consider a system that uses RoundRobin scheduling with a contextswitchingscheduling overhead of duration ms We represent the execution timeline of a job mix on this system by indicating ms of computation for a process via an uppercase letter. For example, the following string:
AAAoBoCoAAoDDD
means that process A executes for ms then process B for ms then process C for ms then process A again for ms then process D for ms with appropriate contextswitches in between. This example execution lasts ms ms ms ms of actual process execution, ms of contextswitch overhead
Question # pts:
Say that the system is running jobs, A B and C and that all of them are CPUintensive ie each one does one infinitely long CPU burst The system begins with A on the CPU at the beginning its time quantum while B and C are in the Ready Queue, in that order.
a Show the execution pattern as a string of As Bs C and os assuming that the scheduler time quantum is equal to ms Show the execution for more than ms but less than ms
b In the long run ie assuming jobs dont ever terminate what percentage of the CPU time is wasted doing contextswitchingscheduling
Question # pts
Consider the following execution on our system:
AAAAAoBBBBoCoDDDDDoAAAAAoCoDDDDDoAAAoCoDDDDDoAAAAAoBBBBB
a Out of the four jobs, which one do you think is a more interactive process eg a text editor and why?
b In general not specific to the execution above is it possible to have a job run for longer than the time quantum with a Round Robin scheduling algorithm? Explain your answer.
Question # pts:
Consider a job mix in which there is one CPUintensive job, A and IOintensive jobs, B C and D The scheduler uses Round Robin scheduling with a time quantum of ms Here is an observed execution, where initially A is running and B C and D are in the ready queue in this order:
AAAoBBoCoDoAAAoBBoAAAoDoAAAoBBoCoDoAAAoBBo
Answer the following questions based on the above. Explain and give a specify a part of the execution.
a Could any of As IOburst time be ms Explain.
b Could any of Bs IOburst time be ms Explain.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
