-
Bug
-
Resolution: Duplicate
-
P3
-
6
-
generic
-
generic
Thread.sleep(millis,nanos) might possibly return before
the specified time has elapsed, if nanos < 500,000, because
in that case it rounds down to the nearest millis.
Regardless of whether this behavior is strictly speaking permitted by
the specification, the implementation should "at least" make a "best effort"
to ensure that "at least" the specified time has elapsed.
the specified time has elapsed, if nanos < 500,000, because
in that case it rounds down to the nearest millis.
Regardless of whether this behavior is strictly speaking permitted by
the specification, the implementation should "at least" make a "best effort"
to ensure that "at least" the specified time has elapsed.
- duplicates
-
JDK-6811570 Thread.sleep returns early
- Closed
-
JDK-8210004 Thread.sleep(millis, nanos) timeout returns early
- Resolved
- relates to
-
JDK-5068368 (thread) Thread.sleep should say "at least as long" and implement this guarantee
- Closed
-
JDK-8065372 Object.wait(ms, ns) timeout returns early
- Closed