Parallelism in .NET – Part 10, Cancellation in PLINQ and the Parallel class
- by Reed
Many routines are parallelized because they are long running processes. When writing an algorithm that will run for a long period of time, its typically a good practice to allow that routine to be cancelled. I previously discussed terminating a parallel loop from within, but have not demonstrated how a routine can be cancelled from the…