Suppose the main thread is spawning a new thread t1, how can my code that runs on t1 find the thread id of the main thread (using c#)?
Edit: I don\'t control the
I don't know if you have a property to do that, but you could add a new parameter to your thread an pass to it. It would be the easiest way I could think of...