V
venkat
Hi,
I have a page that calls a sql procedure and it runs for 20 - 40 min. I
use usual threading for this page.
<code>Thread objthread = new Thread(new ThreadStart(ticketingThread));
objthread.Start();</code>
As i dont know when it will end. i never abort the thread. what happens
is when user uses the page for 1 week, the page starts hanging. I dont
know what happens. When i tried debugging it works fine.
I also saw creating thread in threadpools
<code>ThreadPool.QueueUserWorkItem(new
WaitCallback(ticketingThread));</code>
Please advise which one I have to follow and what is the difference
between the two.
Thanks
Venkat
I have a page that calls a sql procedure and it runs for 20 - 40 min. I
use usual threading for this page.
<code>Thread objthread = new Thread(new ThreadStart(ticketingThread));
objthread.Start();</code>
As i dont know when it will end. i never abort the thread. what happens
is when user uses the page for 1 week, the page starts hanging. I dont
know what happens. When i tried debugging it works fine.
I also saw creating thread in threadpools
<code>ThreadPool.QueueUserWorkItem(new
WaitCallback(ticketingThread));</code>
Please advise which one I have to follow and what is the difference
between the two.
Thanks
Venkat