Killing thread after some specified time limit in Java

Posted by Moev4 on Stack Overflow See other posts from Stack Overflow or by Moev4
Published on 2010-04-28T21:47:34Z Indexed on 2010/04/28 21:57 UTC
Read the original article Hit count: 198

Filed under:
|
|

Is there a way to kill a child thread after some specified time limit in Java? Edit: Also this particular thread may be blocked in its worst case (Thread is used to wait for a file modification and blocks until this event occurs), so im not sure that interrupt() will be successful?

© Stack Overflow or respective owner

Related posts about java

Related posts about threads