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

What is windows application in c#?

648


What kind of the information stored inside the assembly?

743


What is the main method?

679


What is razor view in c#?

625


3. Use layered architecture for coding. s.no name description 1 abc xxxxxxxxx 2 abc xxxxxxxxx 3 4 5 6 7 8 Select all Clear all Add Delete Name Description Save close

1610


Why singleton pattern is used in c#?

690


What does void mean in c#?

700


Name the method of servicebase class?

719


What is concatenation and when should it be used?

688


Can we make a class private in c#?

690


What is a dll in c#?

630


What is session c#?

676


What is a dynamic assembly?

719


What is the difference between “finalize” and “finally” methods in c#?

675


What is the difference between CreateObject() and GetObject()?

729