How it works...

From the examples used in this recipe, it is clear that use of the parallel foreach loop should be considered carefully. If you are dealing with relatively low volumes of data or non-process intensive transactions, the parallel foreach loop will not benefit your application's performance much. In some instances, the standard foreach loop could be much faster than the parallel foreach loop. If, however, you find your application running into performance issues when processing large amounts of data or running processor-intensive tasks, give the parallel foreach loop a try. It just might surprise you.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.51.228