In this article we will learn about threading overview in c#. Thread is a small set of executable instructions and this set of instructions can be used to isolate a task from a process
Definition We can define Thread as a small set of executable instructions and this set of instructions can be used to isolate a task from a process. To obtain parallelism and give interactive user interaction to the application one of the most efficient way is to implement multiple threads. Tasks and Threads are related with each other. A Task is something that we want to do and a Thread is one of the possible workers that perform the Task. Threads are often known as lightweight processes. Dot Net framework has thread-associate classes in System.Threading namespace. Creating a Thread We have to create a call back function first which will be a starting point for our new Thread. The block of code below illustrates the example of a simple Thread.
Programming C# for Beginners