C# (Sharp) Programming Language Question:

Download Job Interview Questions and Answers PDF

Is there any sample C# code for simple threading?

C# (Sharp) Programming Language Interview Question
C# (Sharp) Programming Language Interview Question

Answer:

Some sample code follows: using System;
using System.Threading;
class ThreadTest
{
public void runme()
{
Console.WriteLine("Runme Called");
}
public static void Main(String[] args)
{
ThreadTest b = new ThreadTest();
Thread t = new Thread(new ThreadStart(b.runme));
t.Start();
}
}

Download C# (Sharp) Programming Language Interview Questions And Answers PDF

Previous QuestionNext Question
Why do I get a security exception when I try to run my C# app?What is the difference between // comments, /* */ comments and /// comments?