End Sub. 3. Build and run the application.
3. Build and run the application. 4. You should observe that although the LINQ syntax was changed, the data was processed in the same parallel manner as it was with the ParallelEnumerable extension methods. Figure 17 Output from parallelized LINQ query using the query comprehension syntax
Next Step: Summary
Summary In this lab, you have worked with the Parallel Extensions library to understand its features to help you work with parallel tasks in a simple, controllable fashion. You’ve learned how to use Parallel Extensions classes like Parallel and Task to manage units of work. You’ve dealt with Parallel Extensions features like Wait(), WaitAll(), IsComplete(), and ContinueWith() to control the flow of your execution. You’ve also worked through examples of using PLINQ to deal with parallelizing queries. This lab has given you a solid introduction to the Parallel Extensions library and its power and benefits. For more education we recommend you visit these locations: · The Parallel Extensions blog on MSDN: http://blogs.msdn.com/pfxteam/ · The Parallel Computing Forms on MSDN: http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=551&SiteID=1 The Parallel Computing Developer Center: http://msdn.microsoft.com/en-us/concurrency/default.aspx.
|