天蓬老师2017-04-18 09:47:07
Design a monitor thread to specifically monitor the execution time of other threads. Start timing, then check the thread status every 1 second
怪我咯2017-04-18 09:47:07
Thread.sleep(1000L * 5);
return;
I don’t knowsleep
whether it can meet the request of the questioner
PHP中文网2017-04-18 09:47:07
General blocking methods can set a timeout and control it in the thread.