C# Thread class provides properties and methods to create and control threads. It is found in System.Threading namespace.
Method | Description |
Abort() | is used to terminate the thread. It raises ThreadAbortException. |
Interrupt() | is used to interrupt a thread which is in WaitSleepJoin state. |
Join() | is used to block all the calling threads until this thread terminates. |
ResetAbort() | is used to cancel the Abort request for the current thread. |
Resume() | is used to resume the suspended thread. It is obselete. |
Sleep(Int32) | is used to suspend the current thread for the specified milliseconds. |
Start() | changes the current state of the thread to Runnable. |
Suspend() | suspends the current thread if it is not suspended. It is obselete. |
Yield() | is used to yield the execution of current thread to another thread. |