CODE IN C TO GET THIS RESULT CPU SCHEDULING: proj2 input.1 SRTF OUTPUT Schdeuling algorithm: SRTF...

Question:

CODE IN C TO GET THIS RESULT

CPU SCHEDULING:

proj2 input.1 SRTF

OUTPUT

Schdeuling algorithm: SRTF
Total 6 tasks are read from "input.1". press 'enter' to start...
==================================================================
<system time 0> process 2 is running
<system time 1> process 2 is running
<system time 2> process 2 is running
<system time 3> process 3 is running
<system time 4> process 3 is running
<system time 5> process 3 is running
<system time 6> process 3 is running
<system time 7> process 3 is running
<system time 8> process 3 is finished.......
<system time 8> process 4 is running
<system time 9> process 4 is running
<system time 10> process 4 is running
<system time 11> process 4 is running
<system time 12> process 4 is finished.......
<system time 12> process 2 is running
<system time 13> process 2 is running
<system time 14> process 2 is running
<system time 15> process 2 is running
<system time 16> process 2 is running
<system time 17> process 2 is running
<system time 18> process 2 is finished.......
<system time 18> process 5 is running
<system time 19> process 5 is running
<system time 20> process 5 is running
<system time 21> process 5 is running
<system time 22> process 5 is running
<system time 23> process 5 is running
<system time 24> process 5 is finished.......
<system time 24> process 6 is running
<system time 25> process 6 is running
<system time 26> process 6 is running
<system time 27> process 6 is running
<system time 28> process 6 is running
<system time 29> process 6 is running
<system time 30> process 6 is running
<system time 31> process 6 is finished.......
<system time 31> process 1 is running
<system time 32> process 1 is running
<system time 33> process 1 is running
<system time 34> process 1 is running
<system time 35> process 1 is running
<system time 36> process 1 is running
<system time 37> process 1 is running
<system time 38> process 1 is running
<system time 39> process 1 is running
<system time 40> process 1 is running
<system time 41> process 1 is finished.......
<system time 41> All processes finish ....................
============================================================
Avarage cpu usage : 100.00 %
Avarage waiting time : 10.50
Avarage response time : 9.00
Avarage turnaround time: 17.33
============================================================

Similar Solved Questions

Alpaca Corporation had revenues of $290,000 in its first year of operations. The company has not collected on$19,200 of its sales and still owes $25,000 on$100,000 of merchandise it purchased. The company had no inventory on hand at the end of the year. The company paid $10,000 in salaries. Owners... 2 answers A manufacturer uses a 28 x 41 metal sheet to construct an open box by cutting out squares from each corner A manufacturer uses a 28 x 41 metal sheet to construct an open box by cutting out squares from each corner. What length square should be cut to maximize volume?... 1 answer Nursing homework/Essay NUR 220 a. What can you learn from Piaget’s Cognitive Development, Erikson’s Social development,... Nursing homework/Essay NUR 220 a. What can you learn from Piaget’s Cognitive Development, Erikson’s Social development, HIPAA guidelines, culturally competent care, the nurse's role in public health care, epidemiology and why is it important to health care? b. Explain how you could a... 1 answer Differential Analysis for a Lease-or-Sell Decision value of$280,600 (original mulated depreciation of $119,700) for$276,600, less a 5% brokerage commission. Company's Inman Construction Co...
Differential Analysis for a Lease-or-Sell Decision value of $280,600 (original mulated depreciation of$119,700) for $276,600, less a 5% brokerage commission. Company's Inman Construction Company is considering selling excess machinery with a book cost of$400,300 less accu Alternatively, the ma...
how do I find the answer for U.S Bank? 13 First America Bank's monthly payment charge on a 48-month, $19,000 loan is$508.26. The U.S. Bank's monthly payment fee is $517.70 for the same loan amount. -> 12.8 What would be the APR for an auto loan for each of these banks? 12.q✓ N 48... 1 answer Northwood Company manufactures basketballs. The company has a ball that sells for$31. At present, the...
Northwood Company manufactures basketballs. The company has a ball that sells for $31. At present, the ball is manufactured in a small plant that relies heavily on direct labor workers. Thus, variable expenses are high, totaling$21.00 per ball, of which 68% is direct labor cost. Last year, the comp...
QUESTION 2 You are a Project Engineer in a well-known engineering consulting company. One of your...
QUESTION 2 You are a Project Engineer in a well-known engineering consulting company. One of your clients, Dato' Ang Chun Kit is very keen to sponsor a group of UCSI students to represent Malaysia in an Innovative Gas Power Cycle Competition, to be held in Japan. The main objectives are to build...
A student has two test scores in a psychology class
a student has two test scores in a psychology class. The mean of these scores is 76 and their range is 28. Use this information to determine the two scores. ( write a system of linear equations to solve the problem)...
Soothing Smoothie Inc. operates small stores in strip malls. It uses smoothles (units) sold as its...
Soothing Smoothie Inc. operates small stores in strip malls. It uses smoothles (units) sold as its measure of activity. Quarterly planning budget amounts and actual results for 3rd quarter of 20X1 are given in the table below. Flexible Actual Results Revenue & Spending Variances budget Activity ...
Research the Flexner Report. How did this report transform medical school in the early 1900s, and...
Research the Flexner Report. How did this report transform medical school in the early 1900s, and how did existing medical schools respond? How did the change in curriculum requirements affect the profession of medicine?...
What does atomic mass unit represent? O Mass of any element O Mass of all the...
What does atomic mass unit represent? O Mass of any element O Mass of all the isotopes of an element O Mass of a mole of a substance O Mass of any atom relative to carbon-12...
Gauss' Law can be expressed as E0 (G) Define each of the symbols in this equation...
Gauss' Law can be expressed as E0 (G) Define each of the symbols in this equation (i) A Gaussian surface in the shape of a cube has edges of length 1.5m (see figure below). Calculate the net flux through the cube the net charge enclosed by the surface a. b. if an electric field of 250 N/C enters...