using System;
using System.Threading;

namespace Demo {
   class MyClass {

      static void Main(string[] args) {

         Thread thread = Thread.CurrentThread;
         thread.Name = "My Thread";

         Console.WriteLine("Thread Name = {0}", thread.Name);
         Console.ReadKey();
      }
   }
}