Parallel list examples

Show 5 more comments
The best way to get parallelism in correlative conjunctions right is to reduce them to ‘either A or B ’ ( it could be any correlative conjunction), and then see if A and B are parallel
The previous example will only print hello world once, butthe ordering of hello world and hello again is unde ned
The Parallel example rewritten with the PLINQ syntax looks like this, where we use the ForAll extension method to iterate over the items