Thanks Miha,
My actual problem is, I am creating n number of threads in an array of
Thread class, and I am stopping all the running threads on fail of any
single thread.
The problem is I have no control over CPU usage, it goes up to 100%.
In this case I think, I need to end up with writing my own ThreadPool
class. Is there any better way of solving my problem?
Santosh L N
"Miha Markic" <miha at rthand com> wrote in message news:<uF**************@TK2MSFTNGP10.phx.gbl>...
Hi Santosh,
I don't think that it is possible at all because threads are managed by pool
which won't let you mess with them.
--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"Santosh" <ln*******@yahoo.com> wrote in message
news:49*************************@posting.google.co m... Hi,
I have a requirement while using ThreadPool class.
I am creating n number of threads using ThreadPool class, using
WaitCallback
method. In this Method I want to stop all the threads started from
main method using ThreadPool.
Is it possible? If yes, how?
Thanks in advance.
Regards,
Santosh L N