Updated 7/17/2018
if you've never created a multi-threaded app, this is basic introduction of threading in .NET using C#.
The Thread class is defined in the System.Threading namespace must be imported before you can use any threading related types.
- using System.Threading;
The Thread constructor takes a ThreadStart delegate as a parameter and creates a new thread. The parameter of the ThreadStart is the method that is executed by the new thread. Once a thread it created, it needs to call the Start method to actually start the thread.
The following code snippet creates a new thread, workerThread that will execute code in the Print method.
- // Create a secondary thread by passing a ThreadStart delegate
- Thread workerThread = new Thread(new ThreadStart(Print));
- // Start secondary thread
- workerThread.Start();
The Print method is listed below that can be used to execute code to do some background or foreground work.
- static void Print()
- {
- }
Let’s try it.
Open Visual Studio. Create a new .NET Core console project. Delete all code and copy and paste (or type) the code in Listing 1.

Rushi MehtaPosted Jul 18, 2018, 7:17 AM
Nice Article..
Viknaraj ManogararajahPosted Jul 17, 2018, 7:57 PM
nice article, thank you for sharing..
Hadshana KamalanathanPosted Jul 17, 2018, 3:09 AM
Thank you for sharing...
Hadshana KamalanathanPosted Jul 17, 2018, 3:08 AM
Thank you for sharing...
Ravishankar NPosted Jul 17, 2018, 12:15 AM
Clear Explanation for Thread concept.