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


Please Help Members By Posting Answers For Below Questions

Can I fly with a loop recorder?

471


What is difference between association, aggregation and inheritance relationships?

490


Is list ienumerable c#?

597


What is the difference between Java and .NET garbage collectors?

501


What is a destructor in c#?

515






Show us in simple steps to create setup & deployment project for windows application?

487


What is event sourcing in c#?

498


Why do we use 0?

496


Where do we set the min and max pool size for connection pooling?

512


Why do we use methods in c#?

465


What is the difference between list and array in c#?

460


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

512


Define boxing and unboxing in c#?

470


What are the collections in c#?

463


What is the xml document structure?

463