Framework & Libraries

Parallel For Loop : Break Or Stop

Dec 20th, 2009 | By sankarsan | Category: Framework & Libraries

In my last post I had discussed about Parallel For loops and in what situation it can be useful compared to a sequential loop.In this post we will take a look at how to break or exit from a Parallel For loop.We can use the break or exit keywords for this purpose as Parallel For [...]



Parallel For Loop

Nov 28th, 2009 | By sankarsan | Category: Framework & Libraries

In my earlier post on Parallel Programming I have explained about Task and Data Parallelism.In this post we will go into a little more deep into the API and discuss about Parallel For loop in .NET Framework 4.0.The static method For of class System.Threading.Tasks.Parallel class allows us to execute for loops where several iterations might [...]



Coordination Data Structures – BlockingCollections

Oct 2nd, 2009 | By sankarsan | Category: Framework & Libraries

In my last post about Parallel Extensions in .NET I had mentioned about the Coordination Data Structure(CDS) , the new set of thread safe collections that are introduced in the System.Collections.Concurrent namespace.In this post we will discuss about the new BlockingCollection<T> class which is introduced to cater for the standard Producer/Consumer pattern.Producer/Consumer pattern is the [...]



Parallel Computing in .NET 4.0 – Overview

Sep 28th, 2009 | By sankarsan | Category: Framework & Libraries

In the last 20-30 years we have seen a tremendous growth in processing power where the average speed of the processor has increased year by year.But over the last couple of years we are observing a shift in this trend.Instead of increase in processor speed the number of processors on a single chip are increasing.We [...]



Code Contract in .NET

Sep 27th, 2009 | By sankarsan | Category: Framework & Libraries

Code Contracts is Microsoft’s implementation of Design by Contract(DbC) philosophy.It has been released as a MSDN Dev Labs project and will be a part of .NET Framework 4.0 hence present in VS 2010 Beta 1.Before getting into details of Code Contracts let us quickly cover DbC to set things in context. The concept of DbC [...]



NCover Code Quality Metrics

Sep 27th, 2009 | By sankarsan | Category: Framework & Libraries

Code Coverage Analysis is very crucial to writing better code and improving quality of software applications.Code Coverage Analysis Tools helps us in automated analysis of code and pinpoints the untested lines of code or areas which has become extremely complex and prone to error/performance bottlenecks.In this post I will discuss about NCover – a leading [...]