Description: Introduction
It had been really long since Tasks got released as part of .Net framework class library (FCL) as a wrapper over thread-pool threads. Now Microsoft strongly recommends the usage of Tasks for almost all multithreaded background running work except in a very few special cases. So it makes perfect sense to understand as to why and how tasks are better in any way than using thread class directly. What are the advantages or new features multi-threading point of view which we can leverage while using tasks. So a point wise comparison of threads and tasks is required to be proficient in using both of them.
A Note for the Attached Code
You need the following software as prerequisites to run the attached code on your computer:
Visual Studio 2012 or above
I expect the reader to be well aware of following to be able to sail through this article comfortably:
Basics of C# langauge
Basics of creating and running a Windows forms application using .Net framework
Basic know
To Search:
File list (Check if you may need any files):
TasksInDotNet\App.config
.............\MainForm.cs
.............\MainForm.Designer.cs
.............\MainForm.resx
.............\Program.cs
.............\Properties
.............\..........\AssemblyInfo.cs
.............\..........\Resources.Designer.cs
.............\..........\Resources.resx
.............\..........\Settings.Designer.cs
.............\..........\Settings.settings
.............\TasksInDotNet.csproj
turtle_(1).txt