Many times you wanted to speed up the time your software took to complete set of tasks, but decided against it due to the complexity it would add to your software. That is not the case anymore. Task Parallel Library (TPL) in Microsoft’s .NET framework will make your life lot easier to optimize the performance your software.
Asynchronous programming is happening everywhere (client and server side). In your client applications, this helps to built very responsive applications. On the server side, you can build very scalable applications. So much is written about these two topics on internet.
Intention of this blog is show the power of TPL using the simplest possible way. Here is the example:
And this is the output