Getting average wait times for processes with certain properties via predicate functions
This is the first time really that passing in a predicate function has made sense. I use the Func<T0, ...> type that takes a Process parameter and returns a bool, below is an example of using the overridden version of GetAverageWaitTime with a predicate function – here only processes with a burst time greater than the lower large burst time bound will satisfy the predicate.
runner.GetAverageWaitTime(x => x.BurstTime > (int)BurstTime.LargeMin)
You can download the bits here (change set #9443 and later).