How to execute task for a specific period in Java.?

Posted by Zakaria on Stack Overflow See other posts from Stack Overflow or by Zakaria
Published on 2010-06-16T14:02:16Z Indexed on 2010/06/16 14:12 UTC
Read the original article Hit count: 240

Filed under:
|
|

In fact I would execute a specific task( a set of instructions) for a determined period.

For example : I want my program to execute the task for 5 minutes, if it gets the right result it stops , else it will continue executing normal task for the 5 minutes and in the end it tells me.

How can I implement this in Java.

© Stack Overflow or respective owner

Related posts about java

Related posts about threads