Question 3 - Process Scheduling (45 points) (This question is related to ILO 2a - discuss...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 3 - Process Scheduling (45 points) (This question is related to ILO 2a - "discuss the mechanisms and policies in efficiently sharing of CPU resources" and ILO 3 – "analyze and evaluate the algorithm and explain the performance issues".) Consider a preemptive scheduling scheme which selects a process that has consumed the least amount of CPU time since its arrival as the selection policy. Like the RR policy, a process is preempted when its time quantum expires and is placed back to the ready queue. Processes in the ready queue are arranged in ascending order of elapsed time. Such that the process that consumes the least amount of CPU time is at the head of the queue and will be dispatched next. If two processes have the same amount of elapsed time, they are ordered by their arrival time. Below is an example system workload. Process A B D E F Arrival Time 0 10 25 40 65 80 CPU Time 85 50 45 65 70 40 a) Apply the above scheduling scheme to these processes and draw the timeline (Gantt chart) diagram. Suppose the system uses a time quantum of 20-time units and has negligible context switch overhead. Assume that new processes always be inserted to the queue just before the arrival time, e.g., at t=25, C has been added to the end of the ready queue. Find the average turnaround time, waiting time, and response time of this scheme. b) Apply the RR scheme with a quantum of 20-time units and the SJF scheme to the same workload. Again, assume negligible context switch overhead. Find the average turnaround time, waiting time, and response time of the RR and SJF schemes. c) Comment on the performance of this new preemptive scheme. Question 3 - Process Scheduling (45 points) (This question is related to ILO 2a - "discuss the mechanisms and policies in efficiently sharing of CPU resources" and ILO 3 – "analyze and evaluate the algorithm and explain the performance issues".) Consider a preemptive scheduling scheme which selects a process that has consumed the least amount of CPU time since its arrival as the selection policy. Like the RR policy, a process is preempted when its time quantum expires and is placed back to the ready queue. Processes in the ready queue are arranged in ascending order of elapsed time. Such that the process that consumes the least amount of CPU time is at the head of the queue and will be dispatched next. If two processes have the same amount of elapsed time, they are ordered by their arrival time. Below is an example system workload. Process A B D E F Arrival Time 0 10 25 40 65 80 CPU Time 85 50 45 65 70 40 a) Apply the above scheduling scheme to these processes and draw the timeline (Gantt chart) diagram. Suppose the system uses a time quantum of 20-time units and has negligible context switch overhead. Assume that new processes always be inserted to the queue just before the arrival time, e.g., at t=25, C has been added to the end of the ready queue. Find the average turnaround time, waiting time, and response time of this scheme. b) Apply the RR scheme with a quantum of 20-time units and the SJF scheme to the same workload. Again, assume negligible context switch overhead. Find the average turnaround time, waiting time, and response time of the RR and SJF schemes. c) Comment on the performance of this new preemptive scheme.
Expert Answer:
Related Book For
Analytics Data Science And Artificial Intelligence Systems For Decision Support
ISBN: 9781292341552
11th Global Edition
Authors: Ramesh Sharda, Dursun Delen, Efraim Turban
Posted Date:
Students also viewed these programming questions
-
JDS is company financed by long-term debt (PLN 5,000,000) and equity (PLN 4,000,000). The company pays 20% income tax. The company's revenues planned for the next year amount to 1,800,000 PLN,...
-
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...
-
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...
-
Payroll Assignment - (50 Marks) The following employees are working in the ABC Clinic, they are paid biweekly. Calculate the gross income, net income, and the total remittance that ABC is to report...
-
Determine the force in each member of the truss and state if the members are in tension or compression. Units Used: kip = 103 lb Given: F = 1000 lb a = 10 ft b = 10 ft D.
-
In 2020, SIGMA produced 50,000 units and sold 44,000 units. The unit selling price was $40. There were no beginning stocks. The manufacturing costs were as follows: Raw materials used $200,000 MOD...
-
Rework Problem 10.14, part a, but exclude the region information. a. Comment on the difference in the models you have found. Is there indication that the region information substantially improves the...
-
Terrys Concrete acquired 20% of the outstanding common stock of Blakeley, Inc. on January 1, 2010, by paying $1,100,000 for 40,000 shares. Blakeley declared and paid a $0.50 per share cash dividend...
-
IFRS and U.S. GAAP are relatively similar with respect to current liabilities and contingencies. Relatively minor differences relate to when financing must be in place for a liability expected to be...
-
Consider the following parlor game to be played between two players. Each player begins with three chips: one red, one white, and one blue. Each chip can be used only once. To begin, each player...
-
FOLLOW THE STEPS OUTLINED BELOW TO OBTAIN THE DATA NEEDED FOR THE GROUP 1. On theWSU Library website home page, from the "Collections" drop down tab, click one-Resourcesand under theDatabases by...
-
How would you characterise EIA from the point of view usefulness in terms of protection of transboundary watercourses?
-
Critically assess the Nicaragua v. Costa Rica decision as it concerns state responsibility for environmental damage.
-
Do you think that non-adversarial methods of dispute settlement are better for friendly relations between states for environmental law?
-
Which of the following numbers could be the probability of an event? 0.33, 0.54, 1, 0, 1.16, 0.01
-
Critically assess the strengths and limitations of UNCLOS in relation to the conservation of marine living resources.
-
Let C be the function whose graph is given to the right. This graph represents the cost C of using m anytime cell phone minutes in a month for a five-person family plan. (a) Determine C(0). Interpret...
-
Find the cross product a x b and verify that it is orthogonal to both a and b. a = (t, 1, 1/t), b = (t 2 , t 2 , 1)
-
What are the 10 commandments of computer/information systems?
-
Discuss the difference of enterprises use of chatbots internally and externally.
-
What is the significance of AlexNet? Draw and describe its architecture.
-
On June 24, 2015, two grocery retailers, Netherlandsbased Ahold and Belgium-based Delhaize, announced their intention to engage in a merger of equals. By merging their activities, the two companies...
-
GlaxoSmithKline is one of the largest pharmaceutical firms in the world, and over an extended period of time in the recent past, it consistently earned higher ROEs than the pharmaceutical industry as...
-
An analyst claims, It is not worth my time to develop detailed forecasts of revenue growth, profit margins, etcetera, to make earnings projections. I can be almost as accurate, at virtually no cost,...
Study smarter with the SolutionInn App