I'm trying to find the proper way of finding out whether two variables refer to the same thread. I considered using the Is operator (== in C#) to determine whether the two variables are pointing to the same object, but I'm wondering if it might be possible to have two separate objects that both refer to the same thread. I tried looking for some sort of a ThreadID property so I can uniquely identify a thread that way, but couldn't find any.
So am I safe just using Is (or == if i was using C#) or should I do it some harder way?
So am I safe just using Is (or == if i was using C#) or should I do it some harder way?