G
Guest
Hi,
I'm working on a multi-threaded application. I'm using ThreadPools.
One of the requirements of the application is, if certain exception occurs
all the
counters have to be reset. I have noticed that some threads, even after
resetting
the counters, have the old values.
Is there any way that we can disable/abort/kill all the active threads when
certain exception occurs.
How can we make sure that the all the counters are synchronised in all
threads.
As I have to port this code to Windows CE platform later on, I guess
aborting
threads may not be one option.
please let me know your suggestions for this scenario.
Cheers,
Naveen.
I'm working on a multi-threaded application. I'm using ThreadPools.
One of the requirements of the application is, if certain exception occurs
all the
counters have to be reset. I have noticed that some threads, even after
resetting
the counters, have the old values.
Is there any way that we can disable/abort/kill all the active threads when
certain exception occurs.
How can we make sure that the all the counters are synchronised in all
threads.
As I have to port this code to Windows CE platform later on, I guess
aborting
threads may not be one option.
please let me know your suggestions for this scenario.
Cheers,
Naveen.