posted 10 years ago
I've 1 manager thread for that 5 child threads are there. So totally for all 6 threads I need to create 4 hash-set. 4 hash-set contains different information which is add by parent thread and child threads. Like this, suppose if I've 3 manager threads, Then for each manager threads I need to create 5 threads.
Example:
Ta(manager) child's threads are ta1, ta2, ta3, ta4, ta5. These 6 threads have 4 hash-set(Hash-sets are Ta+"first", Ta+"second", Ta+"third", Ta+"four") which can be modify by Ta and its child threads only.
Tb(manager) child's threads are tb1, tb2, tb3, tb4, tb5. These 6 threads have 4 hash-set(Hash-sets are Tb+"first", Tb+"second", Tb+"third", Tb+"four") which can be modify by Tb and its child threads only.
Tc(manager) child's threads are tc1, tc2, tc3, tc4, tc5. These 6 threads have 4 hash-set(Hash-sets are Tc+"first", Tc+"second", Tc+"third", Tc+"four") which can be modify by Tc and its child threads only.
@Campbell Ritchie
Yes, it seems very strange requirement to me also.
@Rob Spoor
Not per thread. For 6 threads 4 hash-set.
Thanks All:
Ramakrishna K.C