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 Priority = {0}, thread.Priority);
Console.ReadKey();
}
}
}