i created one thread pool in java to execute number of tasks parallel. but i want to find out any thread in the thread Pool is hung. how can i find out individual status of each thread in the thread pool. please help me out.
The only way I see to get a Thread out of a ThreadPoolExecutor is to extend it and override the beforeExecute() method. So I guess you'll have to write your own executor that'll limit the time a Thread is allowed to run (or however you define your "hung").