Schedule a task.
Schedule a task. Picks a task that uses the most memory, cores, then disk. All tasks should have a resource matching each system resource.
the tasks that should be considered to be schedule.
the system cores available.
the system memory available.
the JVM memory available.
the map of tasks should be scheduled.
Schedule tasks for execution with a given set of resources.
Schedule tasks for execution with a given set of resources. Returns a map of scheduled tasks to their resources to use while running. Only schedules based on the resources available after subtracting resources from running tasks.
the tasks that are currently running.
the tasks that should be considered to be schedule.
the set of system cores.
the set of system memory.
the set of JVM memory.
a map of tasks should be scheduled and their allocate resources.
Simple scheduler that picks the task that uses the most memory, cores, then disk.