Hi,
I am stuck up with a strange problem.
I am writing an application - a kinda tracker that reads data from memcache and invokes theads to process each record of the memcache.
I dont want to join all my threads because my tracker should poll the cache in regular intervals say sum 300 seconds without waiting for the child thread completion.
To accomplish the above task, I created a detachable tracker thread for each poll of memcache which in turn creates worker threads n joins them.
so my main tracker thread need not wait for the detached thread and can start polling the cache at a stipulated time.
Now, when i tried to give a "kill <process_id>", i observed that only my main thread is killed whereas the detached thread and worker threads are still running!!!
Ideally , a kill to main should quit all my detached threads too...ne ideas/thoughts on how to handle this?? Kindly help