39. Directory size, PLINQ style

Repeat Problem 39. Directory size, LINQ style, but this time use PLINQ to add file lengths in parallel. Make the test program perform the same operations using a foreach loop, LINQ, and PLINQ, and display the elapsed time for each. Let the user enter a number of times to repeat each operation so that you can get some meaningful times.

Repeating each operation multiple times limits the time used by disk accesses because the file information should be cached after the first set of calculations.
..................Content has been hidden....................

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