How to schedule jobs without overlap using LINQ to Objects?
问题 This is another resource-allocation problem. My goal is to run a query to assign the top-priority job for any time-slot to one of two CPU cores (just an example, so let's assume no interrupts or multi-tasking). Note: this is similar to my earlier post about partitioning, but focuses on overlapping times and assigning multiple items, not just the top-priority item. Here is our object: public class Job { public int Id; public int Priority; public DateTime Begin; public DateTime End; } The real