Programming in C# – Using the Parallel Class

System.Threadin.Tasks namespace contains another class Parallel that can be used for parallel processing. This enables things that dont need to run sequentially can be executed concurrently. Only increases performance when you have a lot of processing that can be executed at the same time. If using on small data sets performance can be harmed.

It contains the following static methods:


  • For – Loop from pointer
  • ForEach – loop through collection
  • Break – This will ensures all illertations that are running will be stopped result variable has a value of false and LowestBreakIteration of 500.
  • Stop – This will stop everything from running. result LowestBreakIteration will have a value of null
  • Invoke

Leave a Reply

Your email address will not be published. Required fields are marked *