Write the sample code for threading in c# .net..
Answer Posted / sivakumar v
Static Void Run()
{
Console.WriteLine("Thread Is Running");
}
static void Main()
{
Thread TrdObj=new Thread(Run);//create the obj
TrdObj.start();
}
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Can a class have static constructor?
What is difference between dictionary and list in c#?
Why do we need constructors?
What is the difference between CreateObject() and GetObject()?
Is friend a constructor?
How do I calculate relative time?
How to move to a state-related codebase?
What is static noise?
What is strong data type in c#?
What is value c#?
What is ilist c#?
Explain acid rule of thumb for transactions in c#.
Explain the constructor in c#.
What is Covariance and contravariance in C#?
What is gac? What are the steps to create an assembly and add it to the gac?