visual studio 2002: c# threading question
<p>I have a piece of code where I send a file content over tcp/ip channel. There are times when this connection <em>hangs</em> causing entire application to freeze. Is there a way for my main thread to spawn a worker thread and monitor that worker thread. If worker thread succeeds, well and good. If it <strong>hangs</strong> , the main thread could log error message and continue. How can I simulate in my test code that a worker thread is <em>hanging</em>. please let me know what could the code look like. I am using C# Visual studio 2002.</p>
