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.
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:
My thread is in progress...!! My thread is in progress...!! My thread is in progress...!!
My thread is in progress...!! 0 1 2
- C# | Copy Constructor
- Range Constructor in C#
- C# | Default Constructor
- C# | Constructor Overloading
- Index Constructor in C#
- C# | Thread(ThreadStart) Constructor
- Invoking an overloaded constructor using this keyword in C#
- Automation Using Selenium in C# With Example
- How to Execute C# Program on cmd (command-line)?
- How to Install and Setup Visual Studio for C#?
- What is .NET 3-Tier Architecture?
- Cross Join in LINQ
- Comparing two ValueTuple<T1, T2, T3, T4, T5, T6, T7, TRest> in C#
- Compare two ValueTuple<T1, T2, T3, T4, T5, T6, T7> in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.