C# | Thread(ParameterizedThreadStart) Constructor Last Updated : 14 Sep, 2021 Comments Improve Suggest changes Like Article Like Report Thread(ParameterizedThreadStart) Constructor is used to initialize a new instance of the Thread class. It defined a delegate which allows an object to pass to the thread when the thread starts. This constructor gives ArgumentNullException if the parameter of this constructor is null. Syntax: public Thread(ParameterizedThreadStart start); Here, start is a delegate which represents a method to be invoked when this thread begins executing.Below programs illustrate the use of Thread(ParameterizedThreadStart) Constructor:Example 1: CSharp // C# program to illustrate the // use of Thread(ParameterizedThreadStart) // constructor with non-static method using System; using System.Threading; public class MYTHREAD { // Non-static method public void Job() { for (int z = 0; z < 3; z++) { Console.WriteLine("My thread is "+ "in progress...!!"); } } } // Driver Class public class GFG { // Main Method public static void Main() { // Creating object of MYTHREAD class MYTHREAD obj = new MYTHREAD(); // Creating a thread which // calls a parameterized instance method Thread thr = new Thread(obj.Job); thr.Start(); } } Output: My thread is in progress...!! My thread is in progress...!! My thread is in progress...!! Example 2: CSharp // C# program to illustrate the use of // Thread(ParameterizedThreadStart) // constructor with static method using System; using System.Threading; // Driver Class public class GFG { // Main Method public static void Main() { // Creating a thread which calls // a parameterized static-method Thread thr = new Thread(Job); thr.Start(); } // Static method public static void Job() { Console.WriteLine("My thread is"+ " in progress...!!"); for (int z = 0; z < 3; z++) { Console.WriteLine(z); } } } Output: My thread is in progress...!! 0 1 2 Reference: https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread.-ctor?view=netframework-4.7.2#System_Threading_Thread__ctor_System_Threading_ParameterizedThreadStart_ Comment More infoAdvertise with us Next Article C# | Thread(ParameterizedThreadStart) Constructor A ankita_saini Follow Improve Article Tags : C# CSharp Multithreading CSharp Thread Class Similar Reads C# | Thread(ThreadStart) Constructor Thread(ThreadStart) Constructor is used to initialize a new instance of a Thread class. This constructor will give ArgumentNullException if the value of the parameter is null. Syntax: public Thread(ThreadStart start); Here, ThreadStart is a delegate which represents a method to be invoked when this 2 min read Thread.CurrentThread Property in C# A Thread class is responsible for creating and managing a thread in multi-thread programming. It provides a property known as CurrentThread to check the current running thread. Or in other words, the value of this property indicates the current running thread. Syntax: public static Thread CurrentThr 2 min read C# Program to Demonstrate the Static Constructor in Structure A Structure is a well-defined data structure that can hold elements of multiple data types. It is similar to a class because both are user-defined data types and both contain a bunch of different data types. You can also use pre-defined data types. However, sometimes the user might be in need to def 2 min read C# Thread Priority in Multithreading In a multithreaded environment, each thread has a priority that determines how frequently the thread is allocated CPU resources by the operating system. The Thread.Priority property in C# is used to set or get the priority of a thread.A programmer can explicitly assign a priority to a thread using t 3 min read C# | Default Constructor If you don't provide a constructor for your class, C# creates one by default that instantiates the object and sets member variables to the default values as listed in the Default Values Table. Constructor without any parameters is called a default constructor. In other words, this type of constructo 2 min read Like