Parallel.For allows loops with a max iteration of long.MaxValue
Parallel.For(long fromInclusive, long toExclusive, Action<long> body)
{
}
but what if I need to perform a Parallel loop which would have vastly more iterations than long.MaxValue?
E.G. I have a function which returns the number of required iterations as a BigInteger (because long and ulong are not big enough).
Would I have to “roll my own” Parallel.For implementation. My gut feeling is that this is going to be bad practice!
EDIT: Based on various comments…I think I have bitten off more than I can chew!
I agree with @davenewza, but if you must, this can be a solution