Start Thread with a given execution time
问题 My main process calls an external library method. This method sometimes hangs. I can not fix the external library because another company is responsible for it. I want to use a Thread for the library calls with a defined execution timer. When the method call takes to long, the Thread with the Runnable in which the method call is placed should stop and the main process should go forward. Main Thread wait Execute Thread start Start timer Thread When timer thread is finished kill Execute Thread