Wriju's BLOG

.NET, Cloud and everything


LINQ can be more faster with the availability of multi-core desktops. This can be implemented with minimal impact at the code level with existing code. Here how it looks like, Dim arrInt = Enumerable.Range(1, 4000000) Dim q =     From n In arrant     Where (IsPrime(n))     Select n In my dual core machine it… Read more

Patterns for Parallel Programming

WOW!!! When I first saw it.   Patterns for Parallel Programming: Understanding and Applying Parallel Patterns with the .NET Framework 4   http://www.microsoft.com/downloads/details.aspx?FamilyID=86b3d32b-ad26-4bb8-a3ae-c1637026c3ee&displaylang=en   You must must read it!!!   Namoskar!!!  … Read more

Parallel Computing: PLINQ

Visual Studio 2010 has new API for LINQ (Language Integrated Query). This helps us to implement the power of Parallel Computing in declarative manner. LINQ without Parallel Extension It will take 3 sec for 28 thousand elements. static void Main(string[] args) {     Stopwatch sw = Stopwatch.StartNew();         DoIt();       Console.WriteLine(“Elapsed = “… Read more

Parallel Computing: The new “Task” API

Visual Studio 2010 has new API called “Task”. This helps us to create small pieces of work and execute in distributed manner under multi core machine. Unlike thread it has flexibility to adopt the lower number of CPU without changing code. With improved CLR thread pool local processes are not confined in local thread pool… Read more

Parallel Computing: Leverage the better hardware tomorrow

It has quite a sometime we have been using .NET with System.Threading namespace. So what is new there in Parallel Computing in .NET Framework 4.0 with Visual Studio 2010. There are a lot   Ø  Task-based fine grained parallelism Ø  Better debugger feature Ø  Structured Parallelism Ø  Declarative Parallelism   Above all you are getting… Read more