Hello,
I have a
thread to process files ...
in the main class I defined a ThreadGroup "process_tasks",
then I call the thread for diffrent tasks. different tasks will take different times to finish processing.
in some conditions I need to know, the number of active threads in the system. I have used the activeCount method
the problem is that I'm geting number much larger than the number of threads I called.
for exampl, if I process 7 files and I call activeCount() many times then I get this secqunce of number , 0 2 6 23 22 2 . while the I only used the thread for processing 7 files only.
can any body explain this for me? may be I'm doing somthing wrong?!
please help
regards