Ex1Task1_ParallelizeLongRunningService()
... End Sub
6. Build and run the application. 7. You should see that the employees are all processed in order of their IDs, similar to the following (the exact time to complete will vary): Figure 1 Output from non-parallel calls to a long running service
8. To work with the parallelization features, add the following method to Program.cs (C#) or Module1.vb (Visual Basic). This code uses the For() method from the static Parallel object: (Code Snippet – Intro to Parallel Extensions Lab - Ex1 Ex1Task1_UseParallelForMethod CSharp) C#
|