Parallel Extensions: Building Multicore Applications with .NET |
Index |
Hands-On Lab
Introduction to the Parallel Extensions Library
Lab version:1.0.0
Last updated:1/4/2011
Contents
Overview
Exercise 1: Parallelize an Existing Algorithm using the Static Parallel Helper Class
Task 1 � Parallelizing a Long Running Service
Exercise 2: Create and Run Parallelized Tasks
Task 1 � Natively Running Parallelized Tasks
Task 2 � Using the Wait() and WaitAll() Methods
Task 3 � Using the IsCompleted Property
Task 4 � Using the ContinueWith() Method
Exercise 3: Use the Generic Task Class to Create and Run Tasks that Return a Value
Task 1 � Capturing a Task�s Return Value
Exercise 4: Parallelize LINQ Queries using PLINQ
Task 1 � Using the ParallelEnumerable Class� Static Methods to Parallelize LINQ
Task 2 � Using the ParallelEnumerable Class� Extension Methods to Parallelize LINQ
Task 3 � Using AsParallel() With Query Comprehension Syntax