I would not like to increase number of threads from 20.
When I run my application and provide requests more than 20 but less than 30 (maxThreads + acceptCount) the application hangs and returns to normal when all busy threads complete tasks and return to ready state.
In second run when I created more than 30 busy threads the application crashed and return back again to normal after some time.
My need is that if particular thread takes more time than say 2 minuted that thread should be interrupted/killed.
So that after 2 minutes of rum it is available to take other tasks.