P
Prasad
Hello,
I have two threads T1 and T2.
T2 starts thread T1 and waits for 1 minute for T1 to finish (using
Join) and if it doesn't finish within that time, it aborts the thread
T1.
Now, I want to introduce dynamic wait in this. i.e. I want T1 to
communicate to T2 that it needs more time to finish and then
accordingly I want T2 to wait.
How do I accomplish this using C#? I thought off using thread local
storage for that. However, I don't see a way for thread T2 to access
the TLS of T1 from within T2.
Any help on this would be appreciated.
-Prasad
I have two threads T1 and T2.
T2 starts thread T1 and waits for 1 minute for T1 to finish (using
Join) and if it doesn't finish within that time, it aborts the thread
T1.
Now, I want to introduce dynamic wait in this. i.e. I want T1 to
communicate to T2 that it needs more time to finish and then
accordingly I want T2 to wait.
How do I accomplish this using C#? I thought off using thread local
storage for that. However, I don't see a way for thread T2 to access
the TLS of T1 from within T2.
Any help on this would be appreciated.
-Prasad