What is the use of threadstart class and thread class in c#.net?
Multi Threading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sachin SinghRank #66 · 26.2K reputationPosted Jan 29, 2021, 2:10 PM EST
Kiran MohantyRank #821 · 2.8K reputationPosted Jan 29, 2021, 10:15 AM EST
Aman GuptaRank #193 · 12.4K reputationPosted Jan 29, 2021, 1:40 PM EST
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 that represents a method to be invoked when this thread begins executing.
In C#, a multi-threading system is built upon the Thread class, which encapsulates the execution of threads. This class contains several methods and properties which helps in managing and creating threads and this class is defined under
System.Threadingnamespace.Characteristics of Thread class: