application thread, output thread state:
Using system;using system.collections.generic;using system.linq;using system.text;using System.Threading;using System.threading.tasks;namespace Main thread 1{ class program { static void Main (string[] args) { Console.WriteLine ("Current thread Condition:"); Declares a thread variable and assigns a value to the current thread , thread primarythread = thread.currentthread; The name of the assigned thread primarythread.name = "main thread"; Displays information about the process Console.WriteLine ("Thread name: {0}", primarythread.name); Console.WriteLine ("Thread boot status: {0}", primarythread.isalive); Console.WriteLine ("Thread priority: {0}", primarythread.priority); Console.WriteLine ("Thread state: {0}", primarythread.threadstate); Console.ReadLine ();}}}
. NET multi-threading, thread async, thread synchronization, concurrency issues---1---shinepans