Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 . Five batch jobs, A through E , arrive at a computer at essentially the same time. They have an esti - mated running
Five batch jobs, A through E arrive at a computer at essentially the same time. They have an esti mated running time of and seconds, respectively. Their externally defined priorities are and respectively, with a lower value corresponding to a higher priority. For each of the following scheduling algorithms, determine the turnaround time for each process and the average turnaround for all jobs. Ignore process switching overhead. Show how you arrived at your answers. In all cases assume the processes do no IO: they are completely CPU bound. For the last three cases, assume only one job at a time runs, and runs until it finishes.a roundrobinwithatimequantumofsecond, b priorityscheduling,c FCFS run in arrival order as shown above: d shortestjobfirst.
Giventheformula:show the order in which individual calculations have to be performed to determine the value for GG D A Ctimes ED BFor example, the value of C has to be computed before A C can be computed.a Break the problem into a sequence of steps, each performing only one calculation, and show the result of each step introduce new letters as neededb Showwhichofthestepsyouidentifycouldbeperformedatthesametimeonseparateproces sors, ie how you could parallelize this calculation.c ifABCDandEshowwhatthevalueofGis.
Suppose you have a realtime OS on some computer controlling an autonmous train operating in Vermont. The computer running this OS uses interrupts to interact with devices; it has priority levels, with the highest priority. One of the hard realtime requirements is that when a cow event is detected, ie a foreign body of significant size on the tracks, the code that decelerates the train must begin executing not later than ms after detection, and finish executing not later than ms after detection. The handler, itself, needs ms to run. The detection is made known first to the CPU via a priority interrupt.a AssumetheCPUhasjustfinishedaninstruction,soischeckingifthereareanypendinghigher priority interrupts and so instantly sees there is a priority interrupt to handle. If the OS takes ms to save the current process context before beginning the handler for the interrupt, and then x ms to switch to and begin executing the handler, what is the largest permitted value for x if the start deadline is to be met?b Suppose someone in management made a poor decision and chose to implement this real time system on a generalpurpose OS that uses virtual memory. This computer uses an ssd as opposed to a hard drive The maximum time to service a page fault is ms For a worstcase plan ie page faults all take the maximum time how many page faults can be tolerated and have the handler still meet its finishby deadline?c If the train is moving at mph when the event is first detected, how far does it move in the ms before the handler begins executing? or if you prefer, suppose the train is moving at kph Remember to provide correct units with your answer.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started