Threading is a concept in Computer Science that a “thread” is simply the component of a process. Programs can be single-threaded or multi-threaded programs.There are plenty of resources online that will explain in finer detail the threading concept so for the purpose of this article i will provide some simple code that you could execute on a console application to further display a thread in progress.
So above we have a simple console application that starts a single threaded application. We instantiate a Thread Object and call that objects start method. So the application begins with the main thread t printing our method for Write2. At the same time the main thread prints 1. On a multicore process machine the two threads can execute in parallel. The result is of repeated segments of 1′s and 2′s. This is due to the way in which the console handles concurrent requests.
Below is a pretty simple use case for threading in a software situation.