C# Thread class
C# Thread class provides properties and methods to create and control threads. It is found in System.Threading namespace. C# Thread Properties A list of important properties of Thread class are given below: Property Description CurrentThread returns the instance of currently running thread. IsAlive checks whether the current thread is alive or not. It is used to find the execution status of the thread. IsBackground is used to get or set value whether current thread is in background or not. ManagedThreadId is used to get unique id for the current managed thread. Name is used to get or set the name of the current thread. Priority is used to get or set the priority of the current thread. ThreadState is used to return a value representing the thread state. C# Thread Methods A list of important methods of Thread class are given below: Method Description Abort() is used to terminate the thread. It raises ThreadAbortException. Interrupt() is used to interrupt a thread which is in WaitSle...