ParallelExecutor race condition
Closed this issue · 2 comments
TIPConsulting commented
tasks[i++] = Task.Run(
Is a race condition that could result in some tasks being abandoned. Prefer interlocked.increment(ref i)
Note: the increment behavior mimics ++i, not i++, so also change the starting index to compensate
Melodi17 commented
I have trouble understanding and implementing this kind of threading, are you able to give me a larger example/sample or help me implement it?
Melodi17 commented
Resolved in version 2.0.6