1. Round Robin is a preemptive process scheduling algorithm that isn't based on the job characteristics...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Round Robin is a preemptive process scheduling algorithm that isn't based on the job characteristics but on a predetermined slice of time that's given to each job. This time slice is called a time quantum and its size is crucial to the performance of the system. It usually varies from 100 milliseconds to 1 or 2 seconds. Jobs are placed in the READY queue using a first-come, first-served scheme and the Process Scheduler selects the first job from the front of the queue, sets the timer to the time quantum, and allocates the CPU to this job. If processing isn't finished when time expires, the job is preempted and put at the end of the READY queue and its information is saved in its PCB. In the event that the job's CPU cycle is shorter than the time quantum, (1) If this is the job's last CPU cycle and the job is finished, then all resources allocated to it are released and the completed job is returned to the user. Your task is to create a function that performs the round robin algorithm scheduling based on the sample program as a template. doRR CPU 0 19 10 11 12 1.3 14 15 P1: P2: P3: P4: PROCESS HAHANHANH RUN NIVE P1 >Tc=16 >Tw=9 >Tr 16 >Tc=11 >Tw=5 >Tr=9 >Tc=5 >Iw=0 >Tr=1 >Tc=14 >Tw=5 >Tr=9 1. Round Robin is a preemptive process scheduling algorithm that isn't based on the job characteristics but on a predetermined slice of time that's given to each job. This time slice is called a time quantum and its size is crucial to the performance of the system. It usually varies from 100 milliseconds to 1 or 2 seconds. Jobs are placed in the READY queue using a first-come, first-served scheme and the Process Scheduler selects the first job from the front of the queue, sets the timer to the time quantum, and allocates the CPU to this job. If processing isn't finished when time expires, the job is preempted and put at the end of the READY queue and its information is saved in its PCB. In the event that the job's CPU cycle is shorter than the time quantum, (1) If this is the job's last CPU cycle and the job is finished, then all resources allocated to it are released and the completed job is returned to the user. Your task is to create a function that performs the round robin algorithm scheduling based on the sample program as a template. doRR CPU 0 19 10 11 12 1.3 14 15 P1: P2: P3: P4: PROCESS HAHANHANH RUN NIVE P1 >Tc=16 >Tw=9 >Tr 16 >Tc=11 >Tw=5 >Tr=9 >Tc=5 >Iw=0 >Tr=1 >Tc=14 >Tw=5 >Tr=9
Expert Answer:
Answer rating: 100% (QA)
The image contains an exercise description and a sample Gantt chart for a Round Robin scheduling example The exercise is to create a function that per... View the full answer
Related Book For
Fundamental Accounting Principles
ISBN: 978-0078110870
20th Edition
Authors: John J. Wild, Ken W. Shaw, Barbara Chiappetta
Posted Date:
Students also viewed these programming questions
-
www Arnold Dizon has decided to go into business for himself as professional photographer and the following transactions transpired in January A. He invested P300,000 to open the Dizon Photo Arts. B....
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
My company is Target (TGT). In this project, you will find and discern the appropriate data to determine a realistic assessment of the weighted average cost of capital for a firm of your choosing....
-
Nunn Company, which sells electric razors, had $200,000 of cost of goods sold during the month of June. The company projects a 5 percent increase in cost of goods sold during July. The inventory...
-
For a dual-slope converter, describe what occurs during the fixed time interval and the count interval.
-
Explain the difference between in personam, in rem, and quasi in rem jurisdiction and give an example of each.
-
The data file agstrat.dat also contains information on other variables. For each of the following quantities, plot the data, and estimate the population mean for that variable along with its standard...
-
Consider a plant consisting of three machines that make two products, P and Q. Product P costs $50 in raw materials and requires 2 hours on machine 1 and 2 hours on machine 3. Product Q costs $100 in...
-
1. Which aspect of the French revolution most disturbed commentators? 2. How would you align each of these writers on a spectrum running from extreme right to extreme left in politics? 3. How would...
-
What do you understand by WACC? How WACC IS CONSIDERED to appraise the top level management position to achieve the objectives of financial management? Illustrate examples
-
Q.5(a) Find the position of the centroid of a quadrant of an elliptic lamina. 9 (b) Two bodies, weights W, W2, are placed on an inclined plane and are connected by a light string which coincides with...
-
A violin string of length 0.350 m has been tuned to a frequency of 392 Hz (concert G). The linear mass density of the violin string is .650 a. A violinist places their finger on the string to play...
-
ABC Machine Corp. buys a specialty lathe for its metal products with an original equipment purchase price of $42,560. The lathe has an estimated economic life of seven (7) years and an assumed...
-
Standard product cost Designer Furniture Company manufactures designer home furniture. Designer Furniture uses a standard cost system. The direct labor, direct materials, and factory overhead...
-
You are the controller of Wolf Media Corp. (Wolf), a publicly owned Canadian company. Wolf's operations include television production, live theatre production, and interactive media. The company...
-
Implement a menu driven queue program using array. We need to modify behavior of queue. When a request to delete the front element X is called and X is being deleted first time, then element X is...
-
Provide examples of a situations in which environmental disruptions affected consumer attitudes and buying behaviors.
-
What is a companys operating cycle?
-
Jacomo Companys output for the current period was assigned a $300,000 standard direct materials cost. The direct materials variances included a $44,000 favorable price variance and a $6,000 favorable...
-
On April 18, Dice Co. made a short-term investment in 500 common shares of XLT Co. The purchase price is $45 per share and the brokers fee is $150. The intent is to actively manage these shares for...
-
Suggest a general outline marketing planning strategy for 12 months ahead for Graham Keddie.
-
What part should the sales function play when drawing up a detailed 12 months operational marketing plan for EMA?
-
Explain the differences between marketing strategies and sales strategies.
Study smarter with the SolutionInn App