Is there a library in Java that does the following? A thread should repeatedly sleep for x milliseconds until a condition becomes true or the max t
thread
sleep
You should not sleep and check and sleep and check. You want to wait on a condition variable and have the condition change and wake up the thread when its time to do something.