views:

99

answers:

0

Hi All, I am using Multi-threading in my application in order to improve the performance of my application. I have a method where I had the return type as DataTable. But from what I followed in some articles, it is not advisory to invoke methods with return type. Hence, i passed an out parameter of type 'DataTable' inside the method. I am using two threads for calling the same method but with slightly different values passed as the parameters. The first thread runs fine with its state being in 'running state'. When I try to start the 2nd thread, it is pushed to stopped state which occurs as a consequence of the following exception

{"Thread is dead; priority cannot be accessed."}

Hence, the second thread never starts and the first thread keeps on running forever. How to handle this? Any help rendered would be of great use

Regards, Raghuraman.V