hello experts,
I have a quetion on the threads. I have designed a thread pool. the thread pool has a behaviour shrink and re-size based on load. And also i have implemented a listener which gets events for pool resize , pool initiate, task started, task completed etc.., Also I have monitor that i have implemented which is monitoring the pool to see if the load is appropriately handled.
Also i want to implement somthing like a timer thread... i.e., i want to stop the thread if the thread doesnot get response in 'x' seconds. But stop is deprecated in the api what is the best way to implement this.