C# (Sharp) Programming Language Question:

Is there any sample C# code for simple threading?

Tweet Share WhatsApp

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 PDF Read All 163 C# (Sharp) Programming Language Questions
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?