stop executing code in thread after 30s
<p>how to stop executing code in thread if takes to long. I have few threads which working all the time but after while code in thread is executing too long and application stop responding.</p>

<p>is it possible that if code is not executed in 30s thread will stop executing it and go to next code... so application will still be alive and will not stop responding. i am using C# .net 3.5</p>
