Parallel programming coding guidelines

  This is awesome book from Microsoft on Parallel programming coding guidelines. You can download here: Below is Table content of this book Table of Contents Primitives for Parallel Programming Tasks Parallel.For and Parallel.ForEach Parallel LINQ Concurrent Collections Coordination Primitives Correctness Thread Safety Locks Performance Measure Memory Allocations and Performance Caches and Performance Performance Tools … Continue reading Parallel programming coding guidelines


Task Cancellation: Parallel Programming – III

This is my third article on Parallel programming. Last two articles are on Data Parallelism and Task Parallelism. You can read my previous article here: Begin with Parallel programming in Dotnet 4.0 Task Parallelism: Parallel programming - II Today I am writing about how to cancel parallel tasks in cooperative manner i.e. dotnet framework doesn’t … Continue reading Task Cancellation: Parallel Programming – III

Exception handling in Task Parallel Library

Handling Exceptions in parallel world is always challenge. If you know exceptions can be raised from piece of code then you wrap in try catch block to handle managed exceptions. But sometimes unhandled exceptions can be raised. It is very dangerous to not handle unhandled exceptions because it can stop execution of code unpredictably. Task … Continue reading Exception handling in Task Parallel Library

Task Parallelism: Parallel programming – II

  Please read Begin with Parallel programming in Dotnet 4.0 article if you have not read. Task Parallelism This is strategy to run independent task in parallel way. It focuses on distributing execution process (threads) across different parallel computing nodes.Task parallelism emphasizes the distributed (parallelized) nature of the processing (i.e. threads), as opposed to the … Continue reading Task Parallelism: Parallel programming – II

Begin with Parallel programming in Dotnet 4.0

  Now a days computers are coming with multiple processors that enable multiple threads to be executed simultaneously to give performance of applications and we can expect significantly more CPUs in near future. If application is doing CPU intensive tasks and we find that one CPU is taking 100 %usage and others are idle. It … Continue reading Begin with Parallel programming in Dotnet 4.0