Returns a hash code for the current thread.
An integer hash code value.
The hash code is not guaranteed to be unique. Use the Thread.ManagedThreadId property if you need a unique identifier for a managed thread.