Use the Thread.IsAlive
flag. This is to give the thread status.
More Related Contents:
- Automating the InvokeRequired code pattern
- Why is Thread.Sleep so harmful
- How do I abort/cancel TPL Tasks?
- Cross-thread operation not valid [duplicate]
- Concurrent HashSet in .NET Framework?
- Can a C# thread really cache a value and ignore changes to that value on other threads?
- BackgroundWorker RunWorkerCompleted Event
- How do I run a simple bit of code in a new thread?
- C# Thread Termination and Thread.Abort()
- C#: Waiting for all threads to complete
- How to protect resources that may be used in a multi-threaded or async environment?
- Cancelling a pending task synchronously on the UI thread
- Set timeout to an operation
- What is a thread exit code?
- Does using Tasks (TPL) library make an application multithreaded?
- lock keyword in C#
- Wait for a while without blocking main thread
- Workaround for the WaitHandle.WaitAll 64 handle limit?
- Multi processes read&write one file
- lowering priority of Task.Factory.StartNew thread
- Thread safety for DataTable
- Accessing a form’s control from a separate thread
- Creating threads – Task.Factory.StartNew vs new Thread()
- C#/.NET analysis tool to find race conditions/deadlocks
- Run work on specific thread
- Async and Await with For Loop [duplicate]
- Calling an async method from a synchronous method
- Writing to file in a thread safe manner
- Draw on a form by a separate thread
- How can I enumerate all managed threads in C#?