C# program to Create a New THread

Creating a new thread in c sharp

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace ConsoleApplication2
    class mainthread
        public static void ChildCall()
            Console.WriteLine(“Child thread is starting”);
        public static void Main(string [] args)
            ThreadStart th= new ThreadStart(ChildCall);
            Console.WriteLine(“Requesting to Start”);
            Thread create= new Thread(th);
            Console.WriteLine(“Starting the Thread”);

Add Comment