Question about ThreadState bitmask and MSDN docs
It say in MSDN Doc
"TheThread.ThreadState property of a thread provides the current state of a thread.Applications must use a bitmask to determine whether a thread is running. Since the value forRunning is zero (0), test whether a thread is running by using C# code such as(myThread.ThreadState & (ThreadState.Stopped | ThreadState.Unstarted)) == 0 or Visual Basic code such as(myThread.ThreadState And (ThreadState.Stopped Or ThreadState.Unstarted)) = 0."
My question is, can not I use:
if(myThread.ThreadState == System.Threading.ThreadState.Running) How about getting the bitmask to determine if myThread is "Stopped" and what about the bitmask to determin if a myThread is "Aborted" Are there any reference to explain these bit mask think clearly in C#? Thanks a lot
instead since I have seen it in some books and internet forumes?!

