Question: 2 . Task SchedulingImplement a prototype service for resource estimation.Given a set of n tasks, the ith ( 0 i < n ) task runs
Task SchedulingImplement a prototype service for resource estimation.Given a set of n tasks, the ith i n task runs from time startli through endiImplement a task scheduler method that finds the minimum number of machines required to complete the tasks. A task can be scheduled on exactly one machine, and one machine can run only one task at a time.ExampleSuppose n start end Consider the following task schedule. Times in parentheses are the inclusive start and end times for each job. Machine : Machine : Machine : Here the number of machines required is Function DescriptionComplete the function getMinMachines in the editor below.getMinMachines has the following parameters:int startn: the start times of tasks int endn: the end times of tasksReturnsint: the minimum number of machines required to run all the tasks
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
