Specifying the desired degree of parallelism in .Net 4.0 TPL Beta 1
Posted on Intel Software Network
Sometimes, you don’t want to use all the available cores in a parallel loop. Why? Because you have better plans for the remaining available cores. Thus, you want to specify the concurrency level of a parallel loop. Luckily, Task Parallel Library Beta 1 will allow you to do this using the new ParallelOptions class.
C# 2008 and 2010, multicore, .Net Parallel Extensions and PLINQ
The book includes a lot of content dedicated to .Net Parallel Extensions (currently in CTP) and PLINQ (Parallelized LINQ). They will be available in C# 2010 (C# 4.0) and .Net 4.0.
This video shows the application developed in Chapter 11: Coding with .NET Parallel Extensions.
The chapter’s table of contents:
Parallelizing loops using .NET extensions
Time for action – Downloading and installing the .NET Parallel Extensions
No silver bullet
Time for action – Downloading and installing the imaging library
Time for action – Creating an independent class to run in parallel without
side effects
Counting and showing blobs while avoiding side effects
Time for action – Running concurrent nebula finders using a
parallelized loop
Using a parallelized ForEach loop
Coding with delegates in parallelized loops
Working with a concurrent queue
Controlling exceptions in parallelized loops
Time for action – Showing the results in the UI
Combining delegates with a BackgroundWorker
Retrieving elements from a concurrent queue in a producer-consumer scheme
Time for action – Providing feedback to the UI using a producer-consumer
scheme
Creating an asynchronous task combined with a synchronous parallel loop
Time for action – Invoking a UI update from a task
Providing feedback when each job is finished
Using lambda expressions to simplify the code
Parallelizing loops with ranges
Parallelizing queries
Time for action – Parallelized counter
Parallelizing LINQ queries with PLINQ
Specifying the degree of parallelism for PLINQ
Parallelizing statistics and multiple queries
Summary
-
Archives
- October 2009 (12)
- July 2009 (9)
- June 2009 (4)
- May 2009 (14)
- April 2009 (4)
- March 2009 (2)
- February 2009 (7)
-
Categories
- .net
- .Net 4.0
- 3D engine
- Actors
- Atom
- background workers
- Balder
- benchmarks
- book
- c threading
- C#
- Cloud computing
- concurrent programming
- concurrent threads
- Core i7
- cshap
- csharp
- debugging
- design
- diagrams
- Fan
- game development
- games
- Groovy
- hardware threads
- HTML 5
- Hyper-Threading
- Intel
- Intel Atom
- Intel Concurrency Checker
- Intel Parallel Studio
- Java
- Java 7
- Javascript
- Jetlang
- lambda expressions
- metrics
- MIDs
- multi-threaded
- multicore
- multicore programming
- multicore testing
- multiprocessor
- netbooks
- parallel extensions
- parallel performance
- parallel programming
- Parallelism
- Parallelized LINQ
- PLINQ
- podcast
- processes
- RIA
- Rich Internet Applications
- scalability
- scheduling
- scripts
- Silverlight
- Silverlight 3
- SIMD
- software threads
- tasks
- threaded
- TMonitor
- UML
- Uncategorized
- video
- VirtualBox 3.0
- virtualization
- Visual Studio 2010
- Webworkers
- Windows 7
- Windows Vista
-
RSS
Entries RSS
Comments RSS
I am researching about parallel programming, multiprocessor and multicore since 1997. My last research is a new Packt’s book,